class ResourceReferenceConverterProvider {

    @SuppressWarnings("unchecked")
    public <T extends ClientReferenceable> ResourceReferenceConverter<T> getConverterForType(Class<T> referenceableClass){
        return new ResourceReferenceConverter(resourceConverterProvider, repositoryService, permissionsService, configuration,
                new ResourceReferenceConverter.ReferenceClassRestriction(referenceableClass));
    }

}