class ResourceSetService {

    Promise<ResourceSetDescription, ResourceException> getResourceSet(final Context context,
            String realm, final String resourceSetId, String resourceOwnerId, final boolean augmentWithPolicy) {
        return getResourceSet(realm, resourceSetId, resourceOwnerId)
                .thenOnResult(new ResultHandler<ResourceSetDescription>() {
                    @Override
                    public void handleResult(ResourceSetDescription resourceSet) {
                        if (augmentWithPolicy) {
                            augmentWithPolicy(context, resourceSetId, resourceSet);
                        }
                    }
                });
    }

    @Inject public  ResourceSetService(ResourceSetStoreFactory resourceSetStoreFactory, UmaPolicyService policyService,
            CoreWrapper coreWrapper, UmaProviderSettingsFactory umaProviderSettingsFactory);

}