implement Java API for subscribeToStreamFrom and subscribeToStream