nus-yam/ex-repair huggingface dataset:
Program: 123649
Project: 123649
Buggy source:
@Override public boolean select(Viewer viewer,Object parentElement,Object element){
  return selectRepositoryNode(viewer,(RepositoryNode)parentElement,(RepositoryNode)element);
}

Fixed version (ground truth):
@Override public boolean select(Viewer viewer,Object parentElement,Object element){
  if (parentElement instanceof TreePath || element instanceof TreePath) {
    this.getClass();
  }
  if (parentElement instanceof RepositoryNode && element instanceof RepositoryNode) {
    return selectRepositoryNode(viewer,(RepositoryNode)parentElement,(RepositoryNode)element);
  }
  return true;
}
Program: 123650
Project: 123650
Buggy source:
@Override protected CheckboxTreeViewer doCreateTreeViewer(Composite parent,int style){
  RepositoryViewerProvider provider=RepositoryViewerProvider.ALL_CHECKBOX;
  return (CheckboxTreeViewer)provider.createViewer(parent);
}

Fixed version (ground truth):
@Override protected CheckboxTreeViewer doCreateTreeViewer(Composite parent,int style){
  RepositoryViewerProvider provider=RepoCommonViewerProvider.CHECKBOX;
  return (CheckboxTreeViewer)provider.createViewer(parent);
}
Program: 123651
Project: 123651
Buggy source:
private void createTreeViewer(Composite itemComposite){
  filteredCheckboxTree=new FilteredCheckboxTree(itemComposite,SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL| SWT.MULTI){
    @Override protected CheckboxTreeViewer doCreateTreeViewer(    Composite parent,    int style){
      RepositoryViewerProvider provider=RepositoryViewerProvider.ALL_CHECKBOX;
      return (CheckboxTreeViewer)provider.createViewer(parent);
    }
    @Override protected void refreshCompleted(){
      getViewer().expandToLevel(3);
      restoreCheckedElements();
    }
    @Override protected boolean isNodeCollectable(    TreeItem item){
      Object obj=item.getData();
      if (obj instanceof RepositoryNode) {
        RepositoryNode node=(RepositoryNode)obj;
        if (node.getObjectType() == ERepositoryObjectType.METADATA_CONNECTIONS) {
          return true;
        }
      }
      return false;
    }
  }
;
  filteredCheckboxTree.getViewer().addFilter(new ViewerFilter(){
    @Override public boolean select(    Viewer viewer,    Object parentElement,    Object element){
      return selectRepositoryNode(viewer,(RepositoryNode)parentElement,(RepositoryNode)element);
    }
  }
);
}

Fixed version (ground truth):
private void createTreeViewer(Composite itemComposite){
  filteredCheckboxTree=new FilteredCheckboxTree(itemComposite,SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL| SWT.MULTI){
    @Override protected CheckboxTreeViewer doCreateTreeViewer(    Composite parent,    int style){
      RepositoryViewerProvider provider=RepoCommonViewerProvider.CHECKBOX;
      return (CheckboxTreeViewer)provider.createViewer(parent);
    }
    @Override protected void refreshCompleted(){
      getViewer().expandToLevel(3);
      restoreCheckedElements();
    }
    @Override protected boolean isNodeCollectable(    TreeItem item){
      Object obj=item.getData();
      if (obj instanceof RepositoryNode) {
        RepositoryNode node=(RepositoryNode)obj;
        if (node.getObjectType() == ERepositoryObjectType.METADATA_CONNECTIONS) {
          return true;
        }
      }
      return false;
    }
  }
;
  filteredCheckboxTree.getViewer().addFilter(new ViewerFilter(){
    @Override public boolean select(    Viewer viewer,    Object parentElement,    Object element){
      if (parentElement instanceof TreePath || element instanceof TreePath) {
        this.getClass();
      }
      if (parentElement instanceof RepositoryNode && element instanceof RepositoryNode) {
        return selectRepositoryNode(viewer,(RepositoryNode)parentElement,(RepositoryNode)element);
      }
      return true;
    }
  }
);
}
Program: 123652
Project: 123652
Buggy source:
public RepoCommonViewer(Composite aParent,int aStyle){
  super(IRepositoryView.VIEW_ID,aParent,aStyle);
}

Fixed version (ground truth):
public RepoCommonViewer(String viewerId,Composite aParent,int aStyle){
  super(viewerId,aParent,aStyle);
}
Program: 123653
Project: 123653
Buggy source:
/** 
 * Deal with the bug 4402: the content <quotes_encoded>&quot;hello world&quot;</quotes_encoded>. In this case, "characters" will be called three time. first: " second: hello world third: "
 */
public void characters(char ch[],int start,int length) throws SAXException {
  if (isLooping) {
    String text=new String(ch,start,length);
    if (text.length() > 0) {
      for (int i=0; i < selectColumns.size(); i++) {
        if (outputTexts[i] && !currentRowHaveValue[i]) {
          if (this.asXMLs.get(i) && !inCDATA) {
            text=escapeEntityHelper.escapeElementEntities(text);
          }
          if (currentRow[i] == null) {
            currentRow[i]=text;
          }
 else {
            currentRow[i]+=text;
          }
        }
      }
      if (this.entry.hasFunctions()) {
        Map<String,Object> map=new HashMap<String,Object>();
        map.put("String_Node_Str",loopPath);
        map.put("String_Node_Str",currentPath);
        map.put("String_Node_Str",text);
        listArgs.add(map);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Deal with the bug 4402: the content <quotes_encoded>&quot;hello world&quot;</quotes_encoded>. In this case, "characters" will be called three time. first: " second: hello world third: "
 */
public void characters(char ch[],int start,int length) throws SAXException {
  if (isLooping) {
    String text=new String(ch,start,length);
    if (text.length() > 0) {
      for (int i=0; i < selectColumns.size(); i++) {
        if (outputTexts[i] && !currentRowHaveValue[i]) {
          if (this.asXMLs.get(i) && !inCDATA) {
            text=escapeEntityHelper.escapeElementEntities(text);
          }
          currentRow.addTextValue(i,text);
        }
      }
      if (this.entry.hasFunctions()) {
        Map<String,Object> map=new HashMap<String,Object>();
        map.put("String_Node_Str",loopPath);
        map.put("String_Node_Str",currentPath);
        map.put("String_Node_Str",text);
        listArgs.add(map);
      }
    }
  }
}
Program: 123654
Project: 123654
Buggy source:
public void startCDATA() throws SAXException {
  inCDATA=true;
  if (isLooping) {
    for (int i=0; i < selectColumns.size(); i++) {
      if (this.asXMLs.get(i)) {
        if (outputTexts[i] && !currentRowHaveValue[i]) {
          if (currentRow[i] == null) {
            currentRow[i]="String_Node_Str";
          }
 else {
            currentRow[i]+="String_Node_Str";
          }
        }
      }
    }
  }
}

Fixed version (ground truth):
public void startCDATA() throws SAXException {
  inCDATA=true;
  if (isLooping) {
    for (int i=0; i < selectColumns.size(); i++) {
      if (this.asXMLs.get(i)) {
        if (outputTexts[i] && !currentRowHaveValue[i]) {
          currentRow.addTextValue(i,"String_Node_Str");
        }
      }
    }
  }
}
Program: 123657
Project: 123657
Buggy source:
public void endCDATA() throws SAXException {
  inCDATA=false;
  if (isLooping) {
    for (int i=0; i < selectColumns.size(); i++) {
      if (this.asXMLs.get(i)) {
        if (outputTexts[i] && !currentRowHaveValue[i]) {
          currentRow[i]+="String_Node_Str";
        }
      }
    }
  }
}

Fixed version (ground truth):
public void endCDATA() throws SAXException {
  inCDATA=false;
  if (isLooping) {
    for (int i=0; i < selectColumns.size(); i++) {
      if (this.asXMLs.get(i)) {
        if (outputTexts[i] && !currentRowHaveValue[i]) {
          currentRow.addTextValue(i,"String_Node_Str");
        }
      }
    }
  }
}
Program: 123658
Project: 123658
Buggy source:
public void endElement(String uri,String localName,String qName) throws SAXException {
  for (  XMLNode node : nodes.getNodesCollection()) {
    if (node.isLooping) {
      if (node.outputText) {
        if (node.hasValue == false) {
          node.addTextValue("String_Node_Str");
        }
        node.hasValue=true;
      }
      if ((node.isAsXML || node.isDot) && (this.currentPath.equals(node.nodePath) || this.currentPath.startsWith(node.nodePath + "String_Node_Str"))) {
        if (node.isAsXML) {
          node.addTextValue("String_Node_Str" + qName + "String_Node_Str");
        }
        if (this.currentPath.equals(node.nodePath)) {
          node.hasValue=true;
        }
      }
    }
    node.outputText=false;
  }
  if (this.currentPath.equals(nodes.getLoopPath())) {
    if (isNotNull(nodes.getNodesCollection(),nodes.size())) {
      Map<String,String> map=new HashMap<String,String>();
      for (      XMLNode node : nodes.getNodesCollection()) {
        map.put(node.originPath,node.getTextValue());
      }
      bufferCache.writeData(map);
    }
    nodes.resetAll();
  }
  this.currentPath=this.currentPath.substring(0,this.currentPath.lastIndexOf("String_Node_Str"));
}

Fixed version (ground truth):
public void endElement(String uri,String localName,String qName) throws SAXException {
  for (  XMLNode node : nodes.getNodesCollection()) {
    if (node.isLooping) {
      if (node.outputText) {
        if (node.hasValue == false) {
          node.addTextValue("String_Node_Str");
        }
        node.hasValue=true;
      }
      if ((node.isAsXML || node.isDot) && (this.currentPath.equals(node.nodePath) || this.currentPath.startsWith(node.nodePath + "String_Node_Str"))) {
        if (node.isAsXML) {
          node.addTextValue("String_Node_Str");
          node.addTextValue(qName);
          node.addTextValue("String_Node_Str");
        }
        if (this.currentPath.equals(node.nodePath)) {
          node.hasValue=true;
        }
      }
    }
    node.outputText=false;
  }
  if (this.currentPath.equals(nodes.getLoopPath())) {
    if (isNotNull(nodes.getNodesCollection(),nodes.size())) {
      Map<String,String> map=new HashMap<String,String>();
      for (      XMLNode node : nodes.getNodesCollection()) {
        map.put(node.originPath,node.getTextValue());
      }
      bufferCache.writeData(map);
    }
    nodes.resetAll();
  }
  this.currentPath=this.currentPath.substring(0,this.currentPath.lastIndexOf("String_Node_Str"));
}
Program: 123660
Project: 123660
Buggy source:
public String getTextValue(){
  return value;
}

Fixed version (ground truth):
public String getTextValue(){
  if (isNullValue)   return null;
  return value.toString();
}
Program: 123661
Project: 123661
Buggy source:
public void addTextValue(String appendValue){
  if (value == null) {
    value="String_Node_Str";
  }
  if (appendValue != null) {
    value=value + appendValue;
  }
}

Fixed version (ground truth):
public void addTextValue(String appendValue){
  isNullValue=false;
  if (appendValue != null) {
    value.append(appendValue);
  }
}
Program: 123662
Project: 123662
Buggy source:
public void resetValue(){
  this.value=null;
}

Fixed version (ground truth):
public void resetValue(){
  isNullValue=true;
  value.setLength(0);
}
Program: 123663
Project: 123663
Buggy source:
/** 
 * @see org.eclipse.jface.wizard.Wizard#addPages()
 */
@Override public void addPages(){
  mainPage=new NewProcessWizardPage(property,path);
  addPage(mainPage);
  setWindowTitle(Messages.getString("String_Node_Str"));
}

Fixed version (ground truth):
/** 
 * @see org.eclipse.jface.wizard.Wizard#addPages()
 */
@Override public void addPages(){
  mainPage=new NewProcessWizardPage(property,path);
  if (property.getLabel() != null && !"String_Node_Str".equals(property.getLabel())) {
    mainPage.setNameModifiedByUser(true);
  }
  addPage(mainPage);
  setWindowTitle(Messages.getString("String_Node_Str"));
}
Program: 123664
Project: 123664
Buggy source:
public Set<String> getNeededLibrariesForProcess(IProcess process,boolean withChildrens,boolean... exportAsOSGI){
  return JavaProcessUtil.getNeededLibraries(process,withChildrens,exportAsOSGI);
}

Fixed version (ground truth):
public Set<ModuleNeeded> getNeededLibrariesForProcess(IProcess process,boolean withChildrens){
  return JavaProcessUtil.getNeededModules(process,withChildrens);
}
Program: 123668
Project: 123668
Buggy source:
public RowFigure(TreeNodeEditPart treeNodePart,boolean enableExpaned){
  this.treeNode=(TreeNode)treeNodePart.getModel();
  setLayoutManager(new RowLayout(this,treeNodePart));
  boolean isLookup=false;
  if (treeNode instanceof OutputTreeNode) {
    isLookup=true;
  }
 else {
    TreeNode inputTreeNodeRoot=XmlMapUtil.getTreeNodeRoot(treeNode);
    if (inputTreeNodeRoot != null && inputTreeNodeRoot.eContainer() instanceof InputXmlTree) {
      isLookup=((InputXmlTree)inputTreeNodeRoot.eContainer()).isLookup();
    }
  }
  if (isLookup) {
    expression=new ExpressionFigure();
    expression.setText(treeNode.getExpression());
    if (!XmlMapUtil.isExpressionEditable(treeNode)) {
      expression.setOpaque(true);
      expression.setBackgroundColor(ColorProviderMapper.getColor(ColorInfo.COLOR_EXPREESION_DISABLE));
    }
 else {
      expression.setOpaque(false);
    }
    this.add(expression);
  }
  branchContent=new TreeBranchContent(treeNode);
  treeBranch=new TreeBranch(branchContent,enableExpaned);
  this.add(treeBranch);
  this.addMouseListener(new MouseListener.Stub(){
    public void mousePressed(    MouseEvent me){
      selectManager.setSelection(RowFigure.this);
    }
  }
);
}

Fixed version (ground truth):
public RowFigure(TreeNodeEditPart treeNodePart,boolean enableExpaned){
  this.treeNode=(TreeNode)treeNodePart.getModel();
  setLayoutManager(new RowLayout(this,treeNodePart));
  boolean isLookup=false;
  if (treeNode instanceof OutputTreeNode) {
    isLookup=true;
  }
 else {
    TreeNode inputTreeNodeRoot=XmlMapUtil.getTreeNodeRoot(treeNode);
    if (inputTreeNodeRoot != null && inputTreeNodeRoot.eContainer() instanceof InputXmlTree) {
      isLookup=((InputXmlTree)inputTreeNodeRoot.eContainer()).isLookup();
    }
  }
  if (isLookup) {
    expression=new ExpressionFigure();
    expression.setText(treeNode.getExpression());
    if (!XmlMapUtil.isExpressionEditable(treeNode)) {
      expression.setOpaque(true);
      expression.setBackgroundColor(ColorProviderMapper.getColor(ColorInfo.COLOR_EXPREESION_DISABLE));
    }
 else {
      expression.setOpaque(false);
    }
    this.add(expression);
  }
  branchContent=new TreeBranchContent(treeNodePart);
  treeBranch=new TreeBranch(branchContent,enableExpaned);
  this.add(treeBranch);
  this.addMouseListener(new MouseListener.Stub(){
    public void mousePressed(    MouseEvent me){
      selectManager.setSelection(RowFigure.this);
    }
  }
);
}
Program: 123670
Project: 123670
Buggy source:
private String addQuoteForSpecialChar(String expression){
  int lastIndex=expression.lastIndexOf("String_Node_Str");
  if (lastIndex > 0) {
    String first=expression.substring(0,lastIndex).trim();
    String second=expression.substring(lastIndex + 1,expression.length()).trim();
    String exp=MetadataToolHelper.validateValue(second);
    if (!exp.equals(second)) {
      second="String_Node_Str" + second + "String_Node_Str";
    }
    return first.trim() + "String_Node_Str" + second.trim();
  }
 else {
    return expression;
  }
}

Fixed version (ground truth):
private String addQuoteForSpecialChar(String expression,DbMapComponent component){
  List<String> specialList=new ArrayList<String>();
  List<IConnection> inputConnections=(List<IConnection>)component.getIncomingConnections();
  if (inputConnections == null) {
    return expression;
  }
  for (  IConnection iconn : inputConnections) {
    IMetadataTable metadataTable=iconn.getMetadataTable();
    List<IMetadataColumn> lColumn=metadataTable.getListColumns();
    for (    IMetadataColumn co : lColumn) {
      String columnLabel=co.getLabel();
      String exp=MetadataToolHelper.validateValueNoLengthLimit(columnLabel);
      if (!exp.equals(columnLabel)) {
        specialList.add(columnLabel);
      }
    }
  }
  for (  String specialColumn : specialList) {
    if (expression.contains(specialColumn)) {
      int begin=expression.indexOf(specialColumn);
      int length=specialColumn.length();
      int allLength=expression.length();
      expression=expression.substring(0,begin) + "String_Node_Str" + expression.substring(begin,begin + length)+ "String_Node_Str"+ expression.substring(begin + length,allLength);
      return expression;
    }
  }
  return expression;
}
Program: 123672
Project: 123672
Buggy source:
protected ProcessItem getProcessItem(){
  if ((processItem == null) && (nodes != null) && (nodes.length >= 1)) {
    IRepositoryViewObject repositoryObject=nodes[0].getObject();
    if (repositoryObject.getProperty().getItem() instanceof ProcessItem) {
      processItem=(ProcessItem)repositoryObject.getProperty().getItem();
    }
  }
  return processItem;
}

Fixed version (ground truth):
protected ProcessItem getProcessItem(){
  if ((processItem == null) && (nodes != null) && (nodes.length >= 1)) {
    IRepositoryViewObject repositoryObject=nodes[0].getObject();
    List<IRepositoryNode> nodesChildren=(List<IRepositoryNode>)nodes[0].getChildren();
    IRepositoryViewObject childObject=null;
    if ((nodesChildren != null) && (nodesChildren.size() >= 1)) {
      childObject=nodesChildren.get(0).getObject();
    }
    if (repositoryObject == null && childObject != null && childObject.getProperty().getItem() instanceof ProcessItem) {
      processItem=(ProcessItem)childObject.getProperty().getItem();
    }
    if (repositoryObject != null && repositoryObject.getProperty().getItem() instanceof ProcessItem) {
      processItem=(ProcessItem)repositoryObject.getProperty().getItem();
    }
  }
  return processItem;
}
Program: 123673
Project: 123673
Buggy source:
/** 
 * ftang Comment method "getCurrentJobVersion".
 * @return
 */
public static String getCurrentVersion(RepositoryNode repositoryNode){
  try {
    return ProxyRepositoryFactory.getInstance().getLastVersion(repositoryNode.getId()).getVersion();
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * ftang Comment method "getCurrentJobVersion".
 * @return
 */
public static String getCurrentVersion(RepositoryNode repositoryNode){
  try {
    List<IRepositoryNode> nodeChildren=repositoryNode.getChildren();
    if ((repositoryNode.getId() == "String_Node_Str") && (nodeChildren != null) && (nodeChildren.size() == 1)) {
      return ProxyRepositoryFactory.getInstance().getLastVersion(nodeChildren.get(0).getId()).getVersion();
    }
 else {
      return ProxyRepositoryFactory.getInstance().getLastVersion(repositoryNode.getId()).getVersion();
    }
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
  }
  return "String_Node_Str";
}
Program: 123679
Project: 123679
Buggy source:
private String addQuoteForSpecialChar(String expression){
  int lastIndex=expression.lastIndexOf("String_Node_Str");
  if (lastIndex > 0) {
    String first=expression.substring(0,lastIndex).trim();
    String second=expression.substring(lastIndex + 1,expression.length()).trim();
    String exp=MetadataToolHelper.validateValue(second);
    if (!exp.equals(second)) {
      second="String_Node_Str" + second + "String_Node_Str";
    }
    return first.trim() + "String_Node_Str" + second.trim();
  }
 else {
    return expression;
  }
}

Fixed version (ground truth):
private String addQuoteForSpecialChar(String expression,DbMapComponent component){
  List<String> specialList=new ArrayList<String>();
  List<IConnection> inputConnections=(List<IConnection>)component.getIncomingConnections();
  if (inputConnections == null) {
    return expression;
  }
  for (  IConnection iconn : inputConnections) {
    IMetadataTable metadataTable=iconn.getMetadataTable();
    List<IMetadataColumn> lColumn=metadataTable.getListColumns();
    for (    IMetadataColumn co : lColumn) {
      String columnLabel=co.getLabel();
      String exp=MetadataToolHelper.validateValueNoLengthLimit(columnLabel);
      if (!exp.equals(columnLabel)) {
        specialList.add(columnLabel);
      }
    }
  }
  for (  String specialColumn : specialList) {
    if (expression.contains(specialColumn)) {
      int begin=expression.indexOf(specialColumn);
      int length=specialColumn.length();
      int allLength=expression.length();
      expression=expression.substring(0,begin) + "String_Node_Str" + expression.substring(begin,begin + length)+ "String_Node_Str"+ expression.substring(begin + length,allLength);
      return expression;
    }
  }
  return expression;
}
Program: 123681
Project: 123681
Buggy source:
protected String validateXPath(String newValue,int beanPosition){
  if (beanPosition == -1) {
    return null;
  }
  isValidName=true;
  if (newValue == null || "String_Node_Str".equals(newValue)) {
    isValidName=false;
    return "String_Node_Str";
  }
  final String validateNameSpace=validateNameSpace(newValue);
  if (validateNameSpace != null) {
    return validateNameSpace;
  }
  TreeSchemaTableEntry bean=getExtendedTableModel().getBeansList().get(beanPosition);
  int xPathLength=XmlMapUtil.getXPathLength(bean.getXPath());
  if (getExtendedTableModel() != null) {
    for (int i=0; i < getExtendedTableModel().getBeansList().size(); i++) {
      if (i == beanPosition) {
        continue;
      }
      TreeSchemaTableEntry entry=getExtendedTableModel().getBeansList().get(i);
      int pathLength=XmlMapUtil.getXPathLength(entry.getXPath());
      if (entry.getName() != null && entry.getName().equals(newValue) && xPathLength == pathLength) {
        isValidName=false;
        return "String_Node_Str";
      }
    }
  }
  return null;
}

Fixed version (ground truth):
protected String validateXPath(String newValue,int beanPosition){
  if (beanPosition == -1) {
    return null;
  }
  isValidName=true;
  if (newValue == null || "String_Node_Str".equals(newValue)) {
    isValidName=false;
    return "String_Node_Str";
  }
  final String validateNameSpace=validateNameSpace(newValue);
  if (validateNameSpace != null) {
    return validateNameSpace;
  }
  TreeSchemaTableEntry bean=getExtendedTableModel().getBeansList().get(beanPosition);
  if (getExtendedTableModel() != null) {
    for (int i=0; i < getExtendedTableModel().getBeansList().size(); i++) {
      if (i == beanPosition) {
        continue;
      }
      TreeSchemaTableEntry entry=getExtendedTableModel().getBeansList().get(i);
      if (bean.getXPath().equals(entry.getXPath())) {
        isValidName=false;
        return "String_Node_Str";
      }
    }
  }
  return null;
}
Program: 123682
Project: 123682
Buggy source:
public boolean isSingleSchemaForEBCDIC(IMetadataTable meta){
  if (!getComponent().getName().contains("String_Node_Str") || meta == null) {
    return false;
  }
  String connector=meta.getAttachedConnector();
  IElementParameter param=getElementParameterFromField(EParameterFieldType.SCHEMA_TYPE);
  if (param != null && StringUtils.equals(connector,param.getContext())) {
    if (param.isShow(getElementParameters())) {
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
public boolean isSingleSchemaForEBCDIC(IMetadataTable meta){
  if (!getComponent().getName().contains("String_Node_Str") || meta == null) {
    return false;
  }
  String connector=meta.getAttachedConnector();
  IElementParameter param=getElementParameterFromField(EParameterFieldType.SCHEMA_TYPE);
  if (param != null && StringUtils.equals(connector,param.getContext())) {
    if (param.isShow(getElementParameters())) {
      return true;
    }
  }
  if (!meta.getTableName().equals(this.getUniqueName())) {
    return true;
  }
  return false;
}
Program: 123685
Project: 123685
Buggy source:
private void fillGroup(TreeNode loopElement,List<TreeNode> groupElements){
  final EObject parent=loopElement.eContainer();
  if (parent != null) {
    if (groupElements.contains(parent)) {
      ((TreeNode)parent).setGroup(true);
    }
    if (parent.eContainer() != null && !(parent.eContainer().eContainer() instanceof AbstractInOutTree)) {
      fillGroup((TreeNode)parent,groupElements);
    }
  }
}

Fixed version (ground truth):
private void fillGroup(TreeNode loopElement,List<TreeNode> groupElements){
  final EObject parent=loopElement.eContainer();
  if (parent instanceof TreeNode) {
    if (groupElements.contains(parent)) {
      ((TreeNode)parent).setGroup(true);
    }
    if (parent.eContainer() != null && !(parent.eContainer().eContainer() instanceof AbstractInOutTree)) {
      fillGroup((TreeNode)parent,groupElements);
    }
  }
}
Program: 123689
Project: 123689
Buggy source:
private void setName(){
  IRepositoryView repoView=RepositoryManagerHelper.findRepositoryView();
  if (repoView != null) {
    ILabelProvider labelProvider=(ILabelProvider)repoView.getViewer().getLabelProvider();
    RepositoryNode repositoryNode=rEditorInput.getRepositoryNode();
    if (repositoryNode != null) {
      setTitleImage(labelProvider.getImage(repositoryNode.getObject()));
      setPartName(labelProvider.getText(repositoryNode.getObject()));
    }
  }
}

Fixed version (ground truth):
private void setName(){
  IRepositoryView repoView=RepositoryManagerHelper.findRepositoryView();
  if (repoView != null) {
    RepositoryNode repositoryNode=rEditorInput.getRepositoryNode();
    if (repositoryNode != null) {
      setTitleImage(getTitleImage());
      setPartName(getTitleText(repositoryNode.getObject()));
    }
  }
}
Program: 123690
Project: 123690
Buggy source:
@Override public Image getTitleImage(){
  if (item != null) {
    IRepositoryView viewPart=RepositoryManagerHelper.findRepositoryView();
    if (viewPart != null) {
      ILabelProvider labelProvider=(ILabelProvider)viewPart.getViewer().getLabelProvider();
      RepositoryNode repositoryNode=rEditorInput.getRepositoryNode();
      if (repositoryNode != null) {
        return labelProvider.getImage(repositoryNode.getObject());
      }
    }
  }
  return super.getTitleImage();
}

Fixed version (ground truth):
@Override public Image getTitleImage(){
  if (item != null) {
    IRepositoryView viewPart=RepositoryManagerHelper.findRepositoryView();
    if (viewPart != null) {
      RepositoryNode repositoryNode=rEditorInput.getRepositoryNode();
      if (repositoryNode != null) {
        return ImageProvider.getImage(repositoryNode.getIcon());
      }
    }
  }
  return super.getTitleImage();
}
Program: 123691
Project: 123691
Buggy source:
@Override public String getPartName(){
  if (item != null) {
    IRepositoryView viewPart=RepositoryManagerHelper.findRepositoryView();
    if (viewPart != null) {
      ILabelProvider labelProvider=(ILabelProvider)viewPart.getViewer().getLabelProvider();
      return labelProvider.getText(item.getProperty());
    }
  }
  return super.getPartName();
}

Fixed version (ground truth):
@Override public String getPartName(){
  if (item != null) {
    IRepositoryView viewPart=RepositoryManagerHelper.findRepositoryView();
    if (viewPart != null) {
      RepositoryNode repositoryNode=rEditorInput.getRepositoryNode();
      return getTitleText(repositoryNode.getObject());
    }
  }
  return super.getPartName();
}
Program: 123692
Project: 123692
Buggy source:
@Override public void connectionStatusChanged(EConnectionType newValue,String connectionToApply){
  XmlMapData externalEmfData=(XmlMapData)getExternalEmfData();
  for (  InputXmlTree inputTree : externalEmfData.getInputTrees()) {
    if (inputTree.getName() != null && inputTree.getName().equals(connectionToApply)) {
      inputTree.setLookup(EConnectionType.FLOW_MAIN != newValue);
    }
 else     if (EConnectionType.FLOW_MAIN == newValue) {
      inputTree.setLookup(true);
    }
  }
}

Fixed version (ground truth):
@Override public void connectionStatusChanged(EConnectionType newValue,String connectionToApply){
  XmlMapData externalEmfData=(XmlMapData)getExternalEmfData();
  InputXmlTree mainTable=null;
  for (  InputXmlTree inputTree : externalEmfData.getInputTrees()) {
    if (inputTree.getName() != null && inputTree.getName().equals(connectionToApply)) {
      boolean value=EConnectionType.FLOW_MAIN != newValue;
      inputTree.setLookup(value);
      if (!value) {
        mainTable=inputTree;
      }
    }
 else     if (EConnectionType.FLOW_MAIN == newValue) {
      inputTree.setLookup(true);
    }
  }
  if (mainTable != null) {
    externalEmfData.getInputTrees().remove(mainTable);
    externalEmfData.getInputTrees().add(0,mainTable);
  }
}
Program: 123697
Project: 123697
Buggy source:
public void partBroughtToTop(IWorkbenchPart part){
  IProcess2 process=getJobFromActivatedEditor(part);
  if (process != null && currentProcess != process) {
    changedProcess=true;
    currentProcess=process;
    setContextsView(process);
    JobSettings.switchToCurJobSettingsView();
  }
}

Fixed version (ground truth):
public void partBroughtToTop(IWorkbenchPart part){
  IProcess2 process=getJobFromActivatedEditor(part);
  if (process != null && currentProcess != process) {
    changedProcess=true;
    currentProcess=process;
    setContextsView(process);
    JobSettings.switchToCurJobSettingsView();
    for (    IJobTrackerListener listener : jobTrackerListeners) {
      listener.focusOnJob(process);
    }
  }
}
Program: 123699
Project: 123699
Buggy source:
public void partOpened(IWorkbenchPart part){
  boolean existedJobOpened=false;
  if (part instanceof AbstractMultiPageTalendEditor) {
    AbstractMultiPageTalendEditor mpte=(AbstractMultiPageTalendEditor)part;
    if (mpte.isJobAlreadyOpened()) {
      mpte.updateChildrens();
      IEditorReference[] ref=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findEditors(mpte.getEditorInput(),mpte.getEditorId(),IWorkbenchPage.MATCH_INPUT);
      IEditorPart editorPart=ref[0].getEditor(false);
      editorPart.doSave(new NullProgressMonitor());
      ((AbstractMultiPageTalendEditor)editorPart).setKeepPropertyLocked(true);
      PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().closeEditor(editorPart,false);
      existedJobOpened=true;
    }
  }
 else {
    if (GlobalServiceRegister.getDefault().isServiceRegistered(IDiagramModelService.class)) {
      CorePlugin.getDefault().getDiagramModelService().handleNewEditorAction(part);
    }
  }
  IProcess2 process=getJobFromActivatedEditor(part);
  if (process != null && currentProcess != process && lastProcessOpened != process) {
    lastProcessOpened=process;
    addJobInProblemView(process);
  }
 else   if (existedJobOpened) {
    currentProcess=process;
  }
}

Fixed version (ground truth):
public void partOpened(IWorkbenchPart part){
  boolean existedJobOpened=false;
  if (part instanceof AbstractMultiPageTalendEditor) {
    AbstractMultiPageTalendEditor mpte=(AbstractMultiPageTalendEditor)part;
    if (mpte.isJobAlreadyOpened()) {
      mpte.updateChildrens();
      IEditorReference[] ref=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findEditors(mpte.getEditorInput(),mpte.getEditorId(),IWorkbenchPage.MATCH_INPUT);
      IEditorPart editorPart=ref[0].getEditor(false);
      editorPart.doSave(new NullProgressMonitor());
      ((AbstractMultiPageTalendEditor)editorPart).setKeepPropertyLocked(true);
      PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().closeEditor(editorPart,false);
      existedJobOpened=true;
    }
  }
 else {
    if (GlobalServiceRegister.getDefault().isServiceRegistered(IDiagramModelService.class)) {
      CorePlugin.getDefault().getDiagramModelService().handleNewEditorAction(part);
    }
  }
  IProcess2 process=getJobFromActivatedEditor(part);
  if (process != null && currentProcess != process && lastProcessOpened != process) {
    lastProcessOpened=process;
    addJobInProblemView(process);
  }
 else   if (existedJobOpened) {
    currentProcess=process;
    for (    IJobTrackerListener listener : jobTrackerListeners) {
      listener.focusOnJob(process);
    }
  }
}
Program: 123700
Project: 123700
Buggy source:
/** 
 * Set the process on wich we are selecting context.
 * @param process The process.
 */
public void setProcess(final IProcess2 process){
  if (process != null) {
    if (process.equals(this.process)) {
      return;
    }
    this.process=process;
    contextComboViewer.getControl().setEnabled(true);
    getInformationsFromContextManager(process.getContextManager());
    contextListener=new IContextListener(){
      public void contextsChanged(){
        if (!ProcessContextComposite.this.isDisposed()) {
          getInformationsFromContextManager(process.getContextManager());
        }
      }
    }
;
    this.process.getContextManager().addContextListener(contextListener);
  }
 else {
    if (this.process == null) {
      return;
    }
    if (this.process != null) {
      this.process.getContextManager().removeContextListener(contextListener);
      this.process=null;
    }
    contextComboViewer.getControl().setEnabled(false);
    contextComboViewer.setInput(null);
    contextTableViewer.setInput(null);
  }
}

Fixed version (ground truth):
/** 
 * Set the process on wich we are selecting context.
 * @param process The process.
 */
public void setProcess(final IProcess2 process){
  if (process != null) {
    if (process.equals(this.process)) {
      return;
    }
    this.process=process;
    contextComboViewer.getControl().setEnabled(true);
    getInformationsFromContextManager(process.getContextManager());
    contextListener=new IContextListener(){
      public void contextsChanged(){
        if (!ProcessContextComposite.this.isDisposed()) {
          getInformationsFromContextManager(process.getContextManager());
        }
      }
    }
;
    this.process.getContextManager().addContextListener(contextListener);
    contextComboViewer.addSelectionChangedListener(contextComboListener);
  }
 else {
    if (this.process == null) {
      return;
    }
    if (this.process != null) {
      this.process.getContextManager().removeContextListener(contextListener);
      this.process=null;
    }
    contextComboViewer.getControl().setEnabled(false);
    contextComboViewer.removeSelectionChangedListener(contextComboListener);
    contextComboViewer.setInput(null);
    contextTableViewer.setInput(null);
  }
}
Program: 123702
Project: 123702
Buggy source:
private List<UpdateResult> checkJobletNodeReload(boolean onlySimpleShow){
  if (getProcess() == null || jobletProcessProvider == null) {
    return Collections.emptyList();
  }
  List<UpdateResult> nodeResults=new ArrayList<UpdateResult>();
  for (  INode node : this.getProcess().getGraphicalNodes()) {
    final Item jobletItem=jobletProcessProvider.getJobletItem(node);
    if (jobletItem != null) {
      final Property property=jobletItem.getProperty();
      final String id=property.getId();
      final Date modificationDate=property.getModificationDate();
      final Date oldDate=this.jobletReferenceMap.get(id);
      if (((oldDate != null && !modificationDate.equals(oldDate)) || onlySimpleShow) && !getProcess().getId().equals(id)) {
        List<INode> jobletNodes=findRelatedJobletNode(getProcess(),property.getLabel(),null);
        if (jobletNodes != null && !jobletNodes.isEmpty()) {
          String source=UpdatesConstants.JOBLET + UpdatesConstants.COLON + property.getLabel();
          UpdateCheckResult result=new UpdateCheckResult(jobletNodes);
          result.setResult(EUpdateItemType.RELOAD,EUpdateResult.RELOAD,jobletItem,source);
          result.setJob(getProcess());
          setConfigrationForReadOnlyJob(result);
          nodeResults.add(result);
        }
      }
    }
  }
  return nodeResults;
}

Fixed version (ground truth):
private List<UpdateResult> checkJobletNodeReload(boolean onlySimpleShow){
  if (getProcess() == null || jobletProcessProvider == null) {
    return Collections.emptyList();
  }
  List<UpdateResult> nodeResults=new ArrayList<UpdateResult>();
  for (  INode node : this.getProcess().getGraphicalNodes()) {
    final Item jobletItem=jobletProcessProvider.getJobletItem(node);
    if (jobletItem != null) {
      final Property property=jobletItem.getProperty();
      final String id=property.getId();
      final Date modificationDate=property.getModificationDate();
      boolean isReload=false;
      final Property propertyProcess=this.getProcess().getProperty();
      final Date modificationDateProcess=propertyProcess.getModificationDate();
      if (modificationDate != null && modificationDateProcess != null && !modificationDate.equals(modificationDateProcess) && modificationDate.compareTo(modificationDateProcess) > 0) {
        isReload=true;
      }
      if ((isReload || onlySimpleShow) && !getProcess().getId().equals(id)) {
        List<INode> jobletNodes=findRelatedJobletNode(getProcess(),property.getLabel(),null);
        if (jobletNodes != null && !jobletNodes.isEmpty()) {
          String source=UpdatesConstants.JOBLET + UpdatesConstants.COLON + property.getLabel();
          UpdateCheckResult result=new UpdateCheckResult(jobletNodes);
          result.setResult(EUpdateItemType.RELOAD,EUpdateResult.RELOAD,jobletItem,source);
          result.setJob(getProcess());
          setConfigrationForReadOnlyJob(result);
          nodeResults.add(result);
        }
      }
    }
  }
  return nodeResults;
}
Program: 123707
Project: 123707
Buggy source:
private List<UpdateResult> checkJobletNodeReload(boolean onlySimpleShow){
  if (getProcess() == null || jobletProcessProvider == null) {
    return Collections.emptyList();
  }
  List<UpdateResult> nodeResults=new ArrayList<UpdateResult>();
  for (  INode node : this.getProcess().getGraphicalNodes()) {
    final Item jobletItem=jobletProcessProvider.getJobletItem(node);
    if (jobletItem != null) {
      final Property property=jobletItem.getProperty();
      final String id=property.getId();
      final Date modificationDate=property.getModificationDate();
      final Date oldDate=this.jobletReferenceMap.get(id);
      if (((oldDate != null && !modificationDate.equals(oldDate)) || onlySimpleShow) && !getProcess().getId().equals(id)) {
        List<INode> jobletNodes=findRelatedJobletNode(getProcess(),property.getLabel(),null);
        if (jobletNodes != null && !jobletNodes.isEmpty()) {
          String source=UpdatesConstants.JOBLET + UpdatesConstants.COLON + property.getLabel();
          UpdateCheckResult result=new UpdateCheckResult(jobletNodes);
          result.setResult(EUpdateItemType.RELOAD,EUpdateResult.RELOAD,jobletItem,source);
          result.setJob(getProcess());
          setConfigrationForReadOnlyJob(result);
          nodeResults.add(result);
        }
      }
    }
  }
  return nodeResults;
}

Fixed version (ground truth):
private List<UpdateResult> checkJobletNodeReload(boolean onlySimpleShow){
  if (getProcess() == null || jobletProcessProvider == null) {
    return Collections.emptyList();
  }
  List<UpdateResult> nodeResults=new ArrayList<UpdateResult>();
  for (  INode node : this.getProcess().getGraphicalNodes()) {
    final Item jobletItem=jobletProcessProvider.getJobletItem(node);
    if (jobletItem != null) {
      final Property property=jobletItem.getProperty();
      final String id=property.getId();
      final Date modificationDate=property.getModificationDate();
      boolean isReload=false;
      final Property propertyProcess=this.getProcess().getProperty();
      final Date modificationDateProcess=propertyProcess.getModificationDate();
      if (modificationDate != null && modificationDateProcess != null && !modificationDate.equals(modificationDateProcess) && modificationDate.compareTo(modificationDateProcess) > 0) {
        isReload=true;
      }
      if ((isReload || onlySimpleShow) && !getProcess().getId().equals(id)) {
        List<INode> jobletNodes=findRelatedJobletNode(getProcess(),property.getLabel(),null);
        if (jobletNodes != null && !jobletNodes.isEmpty()) {
          String source=UpdatesConstants.JOBLET + UpdatesConstants.COLON + property.getLabel();
          UpdateCheckResult result=new UpdateCheckResult(jobletNodes);
          result.setResult(EUpdateItemType.RELOAD,EUpdateResult.RELOAD,jobletItem,source);
          result.setJob(getProcess());
          setConfigrationForReadOnlyJob(result);
          nodeResults.add(result);
        }
      }
    }
  }
  return nodeResults;
}
Program: 123709
Project: 123709
Buggy source:
public void refreshName(){
  try {
    JobResourceManager jobResourceManager=JobResourceManager.getInstance();
    jobResourceManager.removeProtection(designerEditor);
    for (    String id : designerEditor.getProtectedIds()) {
      if (designerEditor.getJobResource(id).getJobInfo().getJobName().equalsIgnoreCase(oldJobName)) {
        jobResourceManager.deleteResource(designerEditor.getJobResource(id));
      }
    }
    designerEditor.resetJobResources();
    setName();
    JobInfo jobInfo=designerEditor.getCurrentJobResource().getJobInfo();
    if (jobInfo != null) {
      jobInfo.setJobName(getEditorInput().getName());
    }
    jobResourceManager.addProtection(designerEditor);
    processor.initPath();
    processor.setProcessorStates(IProcessor.STATES_EDIT);
    if (useCodeView) {
      FileEditorInput input=createFileEditorInput();
      codeEditor.setInput(input);
    }
    IWorkbenchWindow activeWorkbenchWindow=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    if (activeWorkbenchWindow != null) {
      if (activeWorkbenchWindow.getActivePage().isPartVisible(this)) {
        new ActiveProcessTracker().partBroughtToTop(this);
        DesignerPlugin.getDefault().getRunProcessService().refreshView();
      }
    }
  }
 catch (  Exception e) {
    MessageBoxExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
public void refreshName(){
  try {
    JobResourceManager jobResourceManager=JobResourceManager.getInstance();
    jobResourceManager.removeProtection(designerEditor);
    for (    String id : designerEditor.getProtectedIds()) {
      if (designerEditor.getJobResource(id).getJobInfo().getJobName().equalsIgnoreCase(oldJobName)) {
        jobResourceManager.deleteResource(designerEditor.getJobResource(id));
      }
    }
    designerEditor.resetJobResources();
    setName();
    JobInfo jobInfo=designerEditor.getCurrentJobResource().getJobInfo();
    if (jobInfo != null) {
      jobInfo.setJobName(getEditorInput().getName());
    }
    jobResourceManager.addProtection(designerEditor);
    processor.initPath();
    processor.setProcessorStates(IProcessor.STATES_EDIT);
    if (useCodeView && !(processor.getProperty().getItem() instanceof JobletProcessItem)) {
      FileEditorInput input=createFileEditorInput();
      codeEditor.setInput(input);
    }
    IWorkbenchWindow activeWorkbenchWindow=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    if (activeWorkbenchWindow != null) {
      if (activeWorkbenchWindow.getActivePage().isPartVisible(this)) {
        new ActiveProcessTracker().partBroughtToTop(this);
        DesignerPlugin.getDefault().getRunProcessService().refreshView();
      }
    }
  }
 catch (  Exception e) {
    MessageBoxExceptionHandler.process(e);
  }
}
Program: 123710
Project: 123710
Buggy source:
@Override public ExecutionResult execute(Item item){
  try {
    boolean modified=updateStatus(item);
    if (modified) {
      return ExecutionResult.SUCCESS_NO_ALERT;
    }
 else {
      return ExecutionResult.NOTHING_TO_DO;
    }
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
    return ExecutionResult.FAILURE;
  }
}

Fixed version (ground truth):
@Override public ExecutionResult execute(Item item){
  if (ERepositoryObjectType.getItemType(item).isDQItemType() && !ERepositoryObjectType.getItemType(item).isDIItemType()) {
    return ExecutionResult.NOTHING_TO_DO;
  }
  try {
    boolean modified=updateStatus(item);
    if (modified) {
      return ExecutionResult.SUCCESS_NO_ALERT;
    }
 else {
      return ExecutionResult.NOTHING_TO_DO;
    }
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
    return ExecutionResult.FAILURE;
  }
}
Program: 123711
Project: 123711
Buggy source:
@Override protected void renameMetadataColumnName(String conectionName,String oldColumnName,String newColumnName){
  System.out.println();
}

Fixed version (ground truth):
@Override protected void renameMetadataColumnName(String conectionName,String oldColumnName,String newColumnName){
  List<AbstractInOutTree> abstractTrees=new ArrayList<AbstractInOutTree>();
  XmlMapData externalEmfData=(XmlMapData)getExternalEmfData();
  abstractTrees.addAll(externalEmfData.getInputTrees());
  abstractTrees.addAll(externalEmfData.getOutputTrees());
  for (  AbstractInOutTree abstractTree : abstractTrees) {
    if (abstractTree.getName() != null && abstractTree.getName().equals(conectionName)) {
      List<TreeNode> children=new ArrayList<TreeNode>();
      if (abstractTree instanceof InputXmlTree) {
        children.addAll(((InputXmlTree)abstractTree).getNodes());
      }
 else {
        children.addAll(((OutputXmlTree)abstractTree).getNodes());
      }
      for (      TreeNode treeNode : children) {
        if (treeNode.getName() != null && treeNode.getName().equals(oldColumnName) && !oldColumnName.equals(newColumnName)) {
          treeNode.setName(newColumnName);
          XmlMapUtil.updateXPathAndExpression(externalEmfData,expressionManager,treeNode,newColumnName,2,true);
        }
      }
    }
  }
}
Program: 123712
Project: 123712
Buggy source:
/** 
 * load project settings to no-opened process
 * @param elemParam
 * @param projectPaType
 */
public static void loadElementParameters(ParametersType processType,ParametersType projectPaType,EParameterName paramName){
  EList listParamType=projectPaType.getElementParameter();
  for (int j=0; j < listParamType.size(); j++) {
    ElementParameterType pType=(ElementParameterType)listParamType.get(j);
    EList processParameters=processType.getElementParameter();
    ElementParameterType processParam=null;
    for (int i=0; i < processParameters.size(); i++) {
      ElementParameterType paramType=(ElementParameterType)processParameters.get(i);
      if (paramType.getName().equals(pType.getName()) && paramType.getField().equals(pType.getField())) {
        processParam=paramType;
      }
 else       if (pType.getName().contains("String_Node_Str")) {
        StringTokenizer token=new StringTokenizer(pType.getName(),"String_Node_Str");
        String parentId=token.nextToken();
        String childId=token.nextToken();
        String[] split=paramType.getName().split("String_Node_Str");
        if (split.length != 2) {
          continue;
        }
        String complexName=paramName + "String_Node_Str" + childId;
        if (complexName.equals(paramType.getName())) {
          processParam=paramType;
        }
      }
      if (processParam != null) {
        break;
      }
    }
    if (processParam != null) {
      processParam.setValue(pType.getValue());
    }
  }
}

Fixed version (ground truth):
/** 
 * load project settings to no-opened process
 * @param elemParam
 * @param projectPaType
 */
public static void loadElementParameters(ParametersType processType,ParametersType projectPaType,EParameterName paramName){
  EList listParamType=projectPaType.getElementParameter();
  for (int j=0; j < listParamType.size(); j++) {
    ElementParameterType pType=(ElementParameterType)listParamType.get(j);
    EList processParameters=processType.getElementParameter();
    ElementParameterType processParam=null;
    for (int i=0; i < processParameters.size(); i++) {
      ElementParameterType paramType=(ElementParameterType)processParameters.get(i);
      if (paramType.getName().equals(pType.getName()) && paramType.getField() != null && paramType.getField().equals(pType.getField())) {
        processParam=paramType;
      }
 else       if (pType.getName().contains("String_Node_Str")) {
        StringTokenizer token=new StringTokenizer(pType.getName(),"String_Node_Str");
        String parentId=token.nextToken();
        String childId=token.nextToken();
        String[] split=paramType.getName().split("String_Node_Str");
        if (split.length != 2) {
          continue;
        }
        String complexName=paramName + "String_Node_Str" + childId;
        if (complexName.equals(paramType.getName())) {
          processParam=paramType;
        }
      }
      if (processParam != null) {
        break;
      }
    }
    if (processParam != null) {
      processParam.setValue(pType.getValue());
    }
  }
}