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