adding subscriptions api calls to the java sdk