You can get the AHPageContainer object from a Viewpager with this little helper sub (with the use of JavaObject):
Sub GetPageContainer (vpg As AHViewPager) As AHPageContainer
Dim jo As JavaObject
jo = vpg
Return jo.RunMethod("getAdapter", Null)
End Sub
If you get this working I would be very interested in your changes/additions to the Statemanager code.