}
}
Resource result = null;
if (contentURL != null) {
MavenResourceBuilder builder = new MavenResourceBuilder();
builder.addIdentityCapability(mavenid);
Capability ccap = builder.addCapability(ContentNamespace.CONTENT_NAMESPACE, null, null);
ccap.getAttributes().put(ContentNamespace.CAPABILITY_URL_ATTRIBUTE, contentURL.toExternalForm());
LOGGER.debug("Found maven resource: {}", result = builder.getResource());
}
return result;
}