class CustomDataSourceResourceConverter extends ResourceConverterImpl<CustomReportDataSource, ClientCustomDataSource> {

    protected Map<String, ClientReferenceableFile> convertResourcesToClient(Map<String, ResourceReference> serverResources, ToClientConversionOptions options){
        Map<String, ClientReferenceableFile> resources = null;
        if(serverResources != null && !serverResources.isEmpty()){
            resources = new HashMap<String, ClientReferenceableFile>(serverResources.size());
            final ResourceReferenceConverter<ClientReferenceableFile> referenceConverter =
                    resourceReferenceConverterProvider.getConverterForType(ClientReferenceableFile.class);
            for(String key : serverResources.keySet()){
                resources.put(key, referenceConverter.toClient(serverResources.get(key), options));
            }
        }
        return resources;
    }

}