class ResourceSetRegistrationEndpoint extends ServerResource {

    @Get
    public Representation readOrListResourceSet() throws NotFoundException, ServerException {
        String resourceSetId = getResourceSetId();
        if (resourceSetId == null || resourceSetId.isEmpty()) {
            return listResourceSets();
        } else {
            return readResourceSet(resourceSetId);
        }
    }

    @Inject public  ResourceSetRegistrationEndpoint(OAuth2ProviderSettingsFactory providerSettingsFactory,
            ResourceSetDescriptionValidator validator, OAuth2RequestFactory<?, Request> requestFactory,
            Set<ResourceSetRegistrationHook> hooks, ResourceSetLabelRegistration labelRegistration,
            ExtensionFilterManager extensionFilterManager, ExceptionHandler exceptionHandler,
            UmaLabelsStore umaLabelsStore, JacksonRepresentationFactory jacksonRepresentationFactory);

}