public void resolveComponentMetaData(
     DependencyMetaData dependency,
     ModuleComponentIdentifier moduleComponentIdentifier,
     BuildableModuleVersionMetaDataResolveResult result) {
   repository.resolveComponentMetaData(dependency, moduleComponentIdentifier, result);
   if (result.getState() == BuildableModuleVersionMetaDataResolveResult.State.Resolved) {
     transformDependencies(result);
   }
 }
 private void transformDependencies(BuildableModuleVersionMetaDataResolveResult result) {
   MutableModuleVersionMetaData metaData = result.getMetaData();
   List<DependencyMetaData> transformed = new ArrayList<DependencyMetaData>();
   for (DependencyMetaData dependency : metaData.getDependencies()) {
     transformed.add(
         dependency.withRequestedVersion(
             dependency.getDescriptor().getDynamicConstraintDependencyRevisionId().getRevision()));
   }
   metaData.setDependencies(transformed);
 }