if(child.getProperty(PROP_TARGET_COMPONENT_QUERY) != null) {
Property prop = child.getProperty(PROP_TARGET_COMPONENT_QUERY); if(prop != null) { String propName = prop.getName().toString(); for(int j=0; j < component.getChildCount(); j++) { ConfigurableComponent newChild = (ConfigurableComponent)component.getChild(j); if(newChild.getShortName().equals(child.getShortName())) newChild.addProperty(propName.substring(name.lastIndexOf(".")+1), prop.getValue()); }
  public ModifiableComponent copy(String name) {    ComponentData cdata = getComponentData();    cdata.setName(name);    RecipeComponent component = new ComponentCollectionRecipe(cdata, null);    component.initProperties();    ((ComponentCollectionRecipe)component).modified = this.modified;    ((ComponentCollectionRecipe)component).oldAssemblyId = getAssemblyId();    for(int i=0; i < getChildCount(); i ++) {      ConfigurableComponent child = (ConfigurableComponent)getChild(i);      if(child.getProperty(PROP_TARGET_COMPONENT_QUERY) != null) {      }    }    return component;  }