((ComponentCollectionRecipe)component).modified = this.modified;
  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);      Property prop = child.getProperty(PROP_TARGET_COMPONENT_QUERY);      if(prop != null) {        String cname = child.getFullName().get(0).toString();        for(int j=0; j < component.getChildCount(); j++) {          ConfigurableComponent newChild = (ConfigurableComponent)component.getChild(j);          if(newChild.getShortName().equals(child.getShortName()) ||             newChild.getShortName().equals(cname + "|"+ ((ComponentBase)child).getComponentClassName()))            newChild.addProperty(prop.getName().last().toString(), prop.getValue());        }      }    }    return component;  }