Program: 136872
Project: 136872
Buggy source:
/** 
 * for hive folder, its children are under connections folder, not here, so find children there, and show link here.
 */
@Override public List<IRepositoryNode> getChildren(boolean withDeleted){
  List<IRepositoryNode> children=new ArrayList<IRepositoryNode>();
  IPath path=RepositoryNodeHelper.getPath(this.getParent());
  path=path.removeLastSegments(2);
  path=path.append(EResourceConstant.DB_CONNECTIONS.getName());
  Item clusterConnectionItem=getParent().getObject().getProperty().getItem();
  String clusterId=clusterConnectionItem.getProperty().getId();
  try {
    RootContainer<String,IRepositoryViewObject> tdqViewObjects=ProxyRepositoryFactory.getInstance().getTdqRepositoryViewObjects(ERepositoryObjectType.METADATA_CONNECTIONS,path.toString());
    for (    IRepositoryViewObject viewObject : tdqViewObjects.getMembers()) {
      if (!withDeleted && viewObject.isDeleted()) {
        continue;
      }
      HiveOfHCConnectionNode repNode=null;
      if (viewObject != null && viewObject.getProperty() != null) {
        String hcId=ConnectionUtils.getHadoopClusterIDOfHive(viewObject);
        if (!clusterId.equals(hcId)) {
          continue;
        }
      }
      try {
        repNode=new HiveOfHCConnectionNode(viewObject,this,ENodeType.REPOSITORY_ELEMENT);
      }
 catch (      Exception e) {
        log.error(e,e);
        continue;
      }
      repNode.setProperties(EProperties.LABEL,viewObject.getLabel());
      repNode.setProperties(EProperties.CONTENT_TYPE,ERepositoryObjectType.METADATA_CONNECTIONS);
      viewObject.setRepositoryNode(repNode);
      children.add(repNode);
    }
  }
 catch (  PersistenceException e) {
    log.error(e,e);
  }
  return children;
}

Fixed version (ground truth):
/** 
 * for hive folder, its children are under connections folder, not here, so find children there, and show link here.
 */
@Override public List<IRepositoryNode> getChildren(boolean withDeleted){
  List<IRepositoryNode> children=new ArrayList<IRepositoryNode>();
  IPath path=RepositoryNodeHelper.getPath(this.getParent());
  path=path.removeLastSegments(2);
  path=path.append(EResourceConstant.DB_CONNECTIONS.getName());
  Item clusterConnectionItem=getParent().getObject().getProperty().getItem();
  String clusterId=clusterConnectionItem.getProperty().getId();
  try {
    RootContainer<String,IRepositoryViewObject> tdqViewObjects=ProxyRepositoryFactory.getInstance().getTdqRepositoryViewObjects(ERepositoryObjectType.METADATA_CONNECTIONS,path.toString());
    for (    IRepositoryViewObject viewObject : tdqViewObjects.getMembers()) {
      if (!withDeleted && viewObject.isDeleted()) {
        continue;
      }
      HiveOfHCConnectionNode repNode=null;
      if (viewObject != null && viewObject.getProperty() != null) {
        String hcId=ConnectionUtils.getHadoopClusterIDOfHive(viewObject);
        if (!clusterId.equals(hcId)) {
          continue;
        }
      }
      try {
        repNode=new HiveOfHCConnectionNode(viewObject,this,ENodeType.REPOSITORY_ELEMENT,getProject());
      }
 catch (      Exception e) {
        log.error(e,e);
        continue;
      }
      repNode.setProperties(EProperties.LABEL,viewObject.getLabel());
      repNode.setProperties(EProperties.CONTENT_TYPE,ERepositoryObjectType.METADATA_CONNECTIONS);
      viewObject.setRepositoryNode(repNode);
      children.add(repNode);
    }
  }
 catch (  PersistenceException e) {
    log.error(e,e);
  }
  return children;
}