private void install(ModuleRevisionId moduleRevisionId, String targetResolver, String ivyInstanceRef) {
IvyInstall install = new IvyInstall();
install.setSettingsRef(IvyInstanceHelper.buildIvyReference(getProject(), ivyInstanceRef));
// locate source resolver
IvyAntSettings ivyAntSettings = IvyInstanceHelper.getIvyAntSettings(getProject(), ivyInstanceRef);
String from = ivyAntSettings.getConfiguredIvyInstance(this).getSettings().getResolverName(moduleRevisionId);
install.setFrom(from);
install.setTo(targetResolver);
install.setOrganisation(moduleRevisionId.getOrganisation());
install.setModule(moduleRevisionId.getName());