// Convert to a maven resource if needed
Capability icap = resource.getIdentityCapability();
List<Capability> ccaps = resource.getCapabilities(ContentNamespace.CONTENT_NAMESPACE);
String mvnatt = (String) icap.getAttribute(IdentityNamespace.CAPABILITY_MAVEN_IDENTITY_ATTRIBUTE);
if (ccaps.isEmpty() && mvnatt != null) {
MavenCoordinates mvnid = MavenCoordinates.parse(mvnatt);
Resource mvnres = getMavenResource(mvnid);
ccaps = mvnres.getCapabilities(ContentNamespace.CONTENT_NAMESPACE);
}
if (ccaps.size() > 0) {