Program: 126781
Project: 126781
Buggy source:
/** 
 * DOC qzhang Comment method "getWSDLValue".
 * @param connection
 * @param value
 * @return
 */
private static Object getWSDLValue(WSDLSchemaConnection connection,String value){
  if ("String_Node_Str".equals(value)) {
    if (!connection.isIsInputModel()) {
      return connection.getWSDL();
    }
    if (isContextMode(connection,connection.getWSDL())) {
      return connection.getWSDL();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getWSDL());
    }
  }
 else   if ("String_Node_Str".equals(value)) {
    return new Boolean(connection.isNeedAuth());
  }
 else   if ("String_Node_Str".equals(value)) {
    if (isContextMode(connection,connection.getUserName())) {
      return connection.getUserName();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getUserName());
    }
  }
 else   if ("String_Node_Str".equals(value)) {
    if (isContextMode(connection,connection.getPassword())) {
      return connection.getPassword();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getPassword());
    }
  }
 else   if ("String_Node_Str".equals(value)) {
    return new Boolean(connection.isUseProxy());
  }
 else   if ("String_Node_Str".equals(value)) {
    if (isContextMode(connection,connection.getProxyHost())) {
      return connection.getProxyHost();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getProxyHost());
    }
  }
 else   if ("String_Node_Str".equals(value)) {
    if (isContextMode(connection,connection.getProxyPort())) {
      return connection.getProxyPort();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getProxyPort());
    }
  }
 else   if ("String_Node_Str".equals(value)) {
    if (isContextMode(connection,connection.getProxyUser())) {
      return connection.getProxyUser();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getProxyUser());
    }
  }
 else   if ("String_Node_Str".equals(value)) {
    if (isContextMode(connection,connection.getProxyPassword())) {
      return connection.getProxyPassword();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getProxyPassword());
    }
  }
 else   if ("String_Node_Str".equals(value)) {
    if (!connection.isIsInputModel()) {
      return connection.getMethodName();
    }
    if (isContextMode(connection,connection.getMethodName())) {
      return connection.getMethodName();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getMethodName());
    }
  }
 else   if ("String_Node_Str".equals(value)) {
    Integer timeOut=new Integer(connection.getTimeOut());
    return timeOut.toString();
  }
 else   if ("String_Node_Str".equals(value)) {
    if (isContextMode(connection,connection.getEndpointURI())) {
      return connection.getEndpointURI();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getEndpointURI());
    }
  }
 else   if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getEncoding())) {
      return connection.getEncoding();
    }
 else {
      if (connection.getEncoding() == null) {
        return TalendQuoteUtils.addQuotes(EMetadataEncoding.getMetadataEncoding("String_Node_Str").getName());
      }
 else {
        return TalendQuoteUtils.addQuotes(connection.getEncoding());
      }
    }
  }
 else   if ("String_Node_Str".equals(value)) {
    return connection.getParameters();
  }
 else   if ("String_Node_Str".equals(value)) {
    return connection.getServerNameSpace();
  }
 else   if ("String_Node_Str".equals(value)) {
    return connection.getServerName();
  }
 else   if ("String_Node_Str".equals(value)) {
    return connection.getPortNameSpace();
  }
 else   if ("String_Node_Str".equals(value)) {
    return connection.getPortName();
  }
 else   if ("String_Node_Str".equals(value)) {
    return getOutputWSDLValue(connection.getParameterValue());
  }
 else   if ("String_Node_Str".equals(value)) {
    return getOutputWSDLValue(connection.getOutputParameter());
  }
  return null;
}

Fixed version (ground truth):
/** 
 * DOC qzhang Comment method "getWSDLValue".
 * @param connection
 * @param value
 * @return
 */
private static Object getWSDLValue(WSDLSchemaConnection connection,String value){
  if ("String_Node_Str".equals(value)) {
    if (!connection.isIsInputModel()) {
      return TalendQuoteUtils.addQuotes(connection.getWSDL());
    }
    if (isContextMode(connection,connection.getWSDL())) {
      return connection.getWSDL();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getWSDL());
    }
  }
 else   if ("String_Node_Str".equals(value)) {
    return new Boolean(connection.isNeedAuth());
  }
 else   if ("String_Node_Str".equals(value)) {
    if (isContextMode(connection,connection.getUserName())) {
      return connection.getUserName();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getUserName());
    }
  }
 else   if ("String_Node_Str".equals(value)) {
    if (isContextMode(connection,connection.getPassword())) {
      return connection.getPassword();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getPassword());
    }
  }
 else   if ("String_Node_Str".equals(value)) {
    return new Boolean(connection.isUseProxy());
  }
 else   if ("String_Node_Str".equals(value)) {
    if (isContextMode(connection,connection.getProxyHost())) {
      return connection.getProxyHost();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getProxyHost());
    }
  }
 else   if ("String_Node_Str".equals(value)) {
    if (isContextMode(connection,connection.getProxyPort())) {
      return connection.getProxyPort();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getProxyPort());
    }
  }
 else   if ("String_Node_Str".equals(value)) {
    if (isContextMode(connection,connection.getProxyUser())) {
      return connection.getProxyUser();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getProxyUser());
    }
  }
 else   if ("String_Node_Str".equals(value)) {
    if (isContextMode(connection,connection.getProxyPassword())) {
      return connection.getProxyPassword();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getProxyPassword());
    }
  }
 else   if ("String_Node_Str".equals(value)) {
    if (!connection.isIsInputModel()) {
      return connection.getMethodName();
    }
    if (isContextMode(connection,connection.getMethodName())) {
      return connection.getMethodName();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getMethodName());
    }
  }
 else   if ("String_Node_Str".equals(value)) {
    Integer timeOut=new Integer(connection.getTimeOut());
    return timeOut.toString();
  }
 else   if ("String_Node_Str".equals(value)) {
    if (isContextMode(connection,connection.getEndpointURI())) {
      return connection.getEndpointURI();
    }
 else {
      return TalendQuoteUtils.addQuotes(connection.getEndpointURI());
    }
  }
 else   if (value.equals("String_Node_Str")) {
    if (isContextMode(connection,connection.getEncoding())) {
      return connection.getEncoding();
    }
 else {
      if (connection.getEncoding() == null) {
        return TalendQuoteUtils.addQuotes(EMetadataEncoding.getMetadataEncoding("String_Node_Str").getName());
      }
 else {
        return TalendQuoteUtils.addQuotes(connection.getEncoding());
      }
    }
  }
 else   if ("String_Node_Str".equals(value)) {
    return connection.getParameters();
  }
 else   if ("String_Node_Str".equals(value)) {
    return connection.getServerNameSpace();
  }
 else   if ("String_Node_Str".equals(value)) {
    return connection.getServerName();
  }
 else   if ("String_Node_Str".equals(value)) {
    return connection.getPortNameSpace();
  }
 else   if ("String_Node_Str".equals(value)) {
    return connection.getPortName();
  }
 else   if ("String_Node_Str".equals(value)) {
    return getOutputWSDLValue(connection.getParameterValue());
  }
 else   if ("String_Node_Str".equals(value)) {
    return getOutputWSDLValue(connection.getOutputParameter());
  }
  return null;
}