class GenericReportUnitResourceConverter extends DataSourceHolderResourceConverter<ServerReportUnitType, ClientReportUnitType> {

    protected Map<String, ResourceReference> getServerResourcesAsMap(List<ResourceReference> list) {
        final HashMap<String, ResourceReference> result = new HashMap<String, ResourceReference>();
        if (list != null) {
            for (ResourceReference reference : list) {
                final String name = reference.isLocal() ? reference.getLocalResource().getName() :
                        getResourceNameForReference(reference);
                result.put(name, reference);
            }
        }
        return result;
    }

}