class ResourceReferenceCollector {

    public Collection<ResourceReference> getResourceReferences() {
        if( referencedResourcesMap != null ) {
            return referencedResourcesMap.values();
        }
        return Collections.emptyList();
    }

}