@Override
public ResourceBuilder getMavenResourceBuilder(ResourceIdentity identity, MavenCoordinates mavenid) {
IllegalArgumentAssertion.assertNotNull(mavenid, "mavenid");
Requirement ireq = new MavenIdentityRequirementBuilder(mavenid).getRequirement();
Collection<Capability> providers = getRepository().findProviders(ireq);
IllegalStateAssertion.assertFalse(providers.isEmpty(), "Cannot find providers for requirement: " + ireq);
Resource mvnres = providers.iterator().next().getResource();