Set<ResourceIdentifier> resourceIdentifiers = new LinkedHashSet<>();
for (Object resource : resources) {
String libraryName = invokeMethod(resource, "getLibraryName");
String resourceName = invokeMethod(resource, "getResourceName");
resourceIdentifiers.add(new ResourceIdentifier(libraryName, resourceName));
}
return resourceIdentifiers;
}