Program: 138103
Project: 138103
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_RULES_SQL);
      if (!withDeleted && folder.isDeleted()) {
        continue;
      }
      RulesSubFolderRepNode childNodeFolder=new RulesSubFolderRepNode(folder,this,ENodeType.SIMPLE_FOLDER);
      childNodeFolder.setProperties(EProperties.CONTENT_TYPE,ERepositoryObjectType.TDQ_RULES_SQL);
      childNodeFolder.setProperties(EProperties.LABEL,ERepositoryObjectType.TDQ_RULES_SQL);
      super.getChildren().add(childNodeFolder);
    }
    for (    IRepositoryViewObject viewObject : tdqViewObjects.getMembers()) {
      if (!withDeleted && viewObject.isDeleted()) {
        continue;
      }
      RuleRepNode repNode=new RuleRepNode(viewObject,this,ENodeType.REPOSITORY_ELEMENT);
      repNode.setProperties(EProperties.CONTENT_TYPE,ERepositoryObjectType.TDQ_RULES_SQL);
      repNode.setProperties(EProperties.LABEL,ERepositoryObjectType.TDQ_RULES_SQL);
      viewObject.setRepositoryNode(repNode);
      super.getChildren().add(repNode);
    }
  }
 catch (  PersistenceException e) {
    log.error(e,e);
  }
  return filterResultsIfAny(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_RULES_SQL);
      if (!withDeleted && folder.isDeleted()) {
        continue;
      }
      RulesSQLSubFolderRepNode childNodeFolder=new RulesSQLSubFolderRepNode(folder,this,ENodeType.SIMPLE_FOLDER);
      childNodeFolder.setProperties(EProperties.CONTENT_TYPE,ERepositoryObjectType.TDQ_RULES_SQL);
      childNodeFolder.setProperties(EProperties.LABEL,ERepositoryObjectType.TDQ_RULES_SQL);
      super.getChildren().add(childNodeFolder);
    }
    for (    IRepositoryViewObject viewObject : tdqViewObjects.getMembers()) {
      if (!withDeleted && viewObject.isDeleted()) {
        continue;
      }
      RuleRepNode repNode=new RuleRepNode(viewObject,this,ENodeType.REPOSITORY_ELEMENT);
      repNode.setProperties(EProperties.CONTENT_TYPE,ERepositoryObjectType.TDQ_RULES_SQL);
      repNode.setProperties(EProperties.LABEL,ERepositoryObjectType.TDQ_RULES_SQL);
      viewObject.setRepositoryNode(repNode);
      super.getChildren().add(repNode);
    }
  }
 catch (  PersistenceException e) {
    log.error(e,e);
  }
  return filterResultsIfAny(super.getChildren());
}