Program: 138326
Project: 138326
Buggy source:
@Override public List<IRepositoryNode> getChildren(boolean withDeleted){
  try {
    super.getChildren().clear();
    RootContainer<String,IRepositoryViewObject> tdqViewObjects=ProxyRepositoryFactory.getInstance().getTdqRepositoryViewObjects(getContentType(),RepositoryNodeHelper.getPath(this).toString());
    for (    Container<String,IRepositoryViewObject> container : tdqViewObjects.getSubContainer()) {
      Folder folder=new Folder((Property)container.getProperty(),ERepositoryObjectType.TDQ_JRAXML_ELEMENT);
      if (!withDeleted && folder.isDeleted()) {
        continue;
      }
      JrxmlTempSubFolderNode childNodeFolder=new JrxmlTempSubFolderNode(folder,this,ENodeType.SIMPLE_FOLDER);
      childNodeFolder.setProperties(EProperties.LABEL,ERepositoryObjectType.TDQ_JRAXML_ELEMENT);
      childNodeFolder.setProperties(EProperties.CONTENT_TYPE,ERepositoryObjectType.TDQ_JRAXML_ELEMENT);
      folder.setRepositoryNode(childNodeFolder);
      super.getChildren().add(childNodeFolder);
    }
    for (    IRepositoryViewObject viewObject : tdqViewObjects.getMembers()) {
      if (!withDeleted && viewObject.isDeleted()) {
        continue;
      }
      JrxmlTempleteRepNode jrxmlNode=new JrxmlTempleteRepNode(viewObject,this,ENodeType.REPOSITORY_ELEMENT);
      jrxmlNode.setProperties(EProperties.LABEL,ERepositoryObjectType.TDQ_JRAXML_ELEMENT);
      jrxmlNode.setProperties(EProperties.CONTENT_TYPE,ERepositoryObjectType.TDQ_JRAXML_ELEMENT);
      viewObject.setRepositoryNode(jrxmlNode);
      super.getChildren().add(jrxmlNode);
    }
  }
 catch (  PersistenceException e) {
    log.error(e,e);
  }
  return super.getChildren();
}

Fixed version (ground truth):
@Override public List<IRepositoryNode> getChildren(boolean withDeleted){
  try {
    super.getChildren().clear();
    RootContainer<String,IRepositoryViewObject> tdqViewObjects=ProxyRepositoryFactory.getInstance().getTdqRepositoryViewObjects(getContentType(),RepositoryNodeHelper.getPath(this).toString());
    for (    Container<String,IRepositoryViewObject> container : tdqViewObjects.getSubContainer()) {
      Folder folder=new Folder((Property)container.getProperty(),ERepositoryObjectType.TDQ_JRAXML_ELEMENT);
      if (!withDeleted && folder.isDeleted()) {
        continue;
      }
      JrxmlTempSubFolderNode childNodeFolder=new JrxmlTempSubFolderNode(folder,this,ENodeType.SIMPLE_FOLDER);
      childNodeFolder.setProperties(EProperties.LABEL,ERepositoryObjectType.TDQ_JRAXML_ELEMENT);
      childNodeFolder.setProperties(EProperties.CONTENT_TYPE,ERepositoryObjectType.TDQ_JRAXML_ELEMENT);
      folder.setRepositoryNode(childNodeFolder);
      super.getChildren().add(childNodeFolder);
    }
    for (    IRepositoryViewObject viewObject : tdqViewObjects.getMembers()) {
      if (!withDeleted && viewObject.isDeleted()) {
        continue;
      }
      JrxmlTempleteRepNode jrxmlNode=new JrxmlTempleteRepNode(viewObject,this,ENodeType.REPOSITORY_ELEMENT);
      jrxmlNode.setProperties(EProperties.LABEL,ERepositoryObjectType.TDQ_JRAXML_ELEMENT);
      jrxmlNode.setProperties(EProperties.CONTENT_TYPE,ERepositoryObjectType.TDQ_JRAXML_ELEMENT);
      viewObject.setRepositoryNode(jrxmlNode);
      if (!duplicateNode(super.getChildren(),jrxmlNode)) {
        super.getChildren().add(jrxmlNode);
      }
    }
  }
 catch (  PersistenceException e) {
    log.error(e,e);
  }
  return super.getChildren();
}