Program: 47490
Project: 47490
Buggy source:
public IDatabaseConnection dataNodeToDatabaseConnection(final Serializable id,final String name,final DataNode rootNode){
  IDatabaseConnection databaseConnection=new DatabaseConnection();
  String databaseType=getString(rootNode,PROP_TYPE);
  databaseConnection.setDatabaseType(databaseType != null ? databaseTypeHelper.getDatabaseTypeByShortName(databaseType) : null);
  databaseConnection.setName(name);
  if (id != null) {
    databaseConnection.setId(id.toString());
  }
  String accessType=getString(rootNode,PROP_CONTYPE);
  databaseConnection.setAccessType(accessType != null ? DatabaseAccessType.getAccessTypeByName(accessType) : null);
  databaseConnection.setHostname(getString(rootNode,PROP_HOST_NAME));
  databaseConnection.setDatabaseName(getString(rootNode,PROP_DATABASE_NAME));
  databaseConnection.setDatabasePort(getString(rootNode,PROP_PORT));
  databaseConnection.setUsername(getString(rootNode,PROP_USERNAME));
  databaseConnection.setPassword(getString(rootNode,PROP_PASSWORD));
  databaseConnection.setInformixServername(getString(rootNode,PROP_SERVERNAME));
  databaseConnection.setDataTablespace(getString(rootNode,PROP_DATA_TBS));
  databaseConnection.setIndexTablespace(getString(rootNode,PROP_INDEX_TBS));
  if (rootNode.hasProperty(PROP_CONNECT_SQL)) {
    databaseConnection.setConnectSql(getString(rootNode,PROP_CONNECT_SQL));
  }
  if (rootNode.hasProperty(PROP_INITIAL_POOL_SIZE)) {
    databaseConnection.setInitialPoolSize((int)rootNode.getProperty(PROP_INITIAL_POOL_SIZE).getLong());
  }
  if (rootNode.hasProperty(PROP_MAX_POOL_SIZE)) {
    databaseConnection.setMaximumPoolSize((int)rootNode.getProperty(PROP_MAX_POOL_SIZE).getLong());
  }
  if (rootNode.hasProperty(PROP_IS_POOLING)) {
    databaseConnection.setUsingConnectionPool(rootNode.getProperty(PROP_IS_POOLING).getBoolean());
  }
  if (rootNode.hasProperty(PROP_IS_FORCING_TO_LOWER)) {
    databaseConnection.setForcingIdentifiersToLowerCase(rootNode.getProperty(PROP_IS_FORCING_TO_LOWER).getBoolean());
  }
  if (rootNode.hasProperty(PROP_IS_FORCING_TO_UPPER)) {
    databaseConnection.setForcingIdentifiersToUpperCase(rootNode.getProperty(PROP_IS_FORCING_TO_UPPER).getBoolean());
  }
  if (rootNode.hasProperty(PROP_IS_QUOTE_FIELDS)) {
    databaseConnection.setQuoteAllFields(rootNode.getProperty(PROP_IS_QUOTE_FIELDS).getBoolean());
  }
  if (rootNode.hasProperty(PROP_IS_DECIMAL_SEPERATOR)) {
    databaseConnection.setUsingDoubleDecimalAsSchemaTableSeparator(rootNode.getProperty(PROP_IS_DECIMAL_SEPERATOR).getBoolean());
  }
  DataNode attrNode=rootNode.getNode(NODE_ATTRIBUTES);
  if (attrNode != null) {
    for (    DataProperty property : attrNode.getProperties()) {
      String code=property.getName();
      String attribute=property.getString();
      databaseConnection.getAttributes().put(code,(attribute == null || attribute.length() == 0) ? "String_Node_Str" : attribute);
    }
  }
  attrNode=rootNode.getNode(NODE_POOLING_PROPS);
  if (attrNode != null) {
    for (    DataProperty property : attrNode.getProperties()) {
      String code=property.getName();
      String attribute=property.getString();
      databaseConnection.getConnectionPoolingProperties().put(code,(attribute == null || attribute.length() == 0) ? "String_Node_Str" : attribute);
    }
  }
  return databaseConnection;
}

Fixed version (ground truth):
public IDatabaseConnection dataNodeToDatabaseConnection(final Serializable id,final String name,final DataNode rootNode){
  IDatabaseConnection databaseConnection=new DatabaseConnection();
  String databaseType=getString(rootNode,PROP_TYPE);
  databaseConnection.setDatabaseType(databaseType != null ? databaseTypeHelper.getDatabaseTypeByShortName(databaseType) : null);
  databaseConnection.setName(name);
  if (id != null) {
    databaseConnection.setId(id.toString());
  }
  String accessType=getString(rootNode,PROP_CONTYPE);
  databaseConnection.setAccessType(accessType != null ? DatabaseAccessType.getAccessTypeByName(accessType) : null);
  databaseConnection.setHostname(getString(rootNode,PROP_HOST_NAME));
  databaseConnection.setDatabaseName(getString(rootNode,PROP_DATABASE_NAME));
  databaseConnection.setDatabasePort(getString(rootNode,PROP_PORT));
  databaseConnection.setUsername(getString(rootNode,PROP_USERNAME));
  databaseConnection.setPassword(getString(rootNode,PROP_PASSWORD));
  databaseConnection.setInformixServername(getString(rootNode,PROP_SERVERNAME));
  databaseConnection.setDataTablespace(getString(rootNode,PROP_DATA_TBS));
  databaseConnection.setIndexTablespace(getString(rootNode,PROP_INDEX_TBS));
  databaseConnection.setConnectSql(getString(rootNode,PROP_CONNECT_SQL));
  databaseConnection.setInitialPoolSize(getInt(rootNode,PROP_INITIAL_POOL_SIZE));
  databaseConnection.setMaximumPoolSize(getInt(rootNode,PROP_MAX_POOL_SIZE));
  databaseConnection.setUsingConnectionPool(getBoolean(rootNode,PROP_IS_POOLING));
  databaseConnection.setForcingIdentifiersToLowerCase(getBoolean(rootNode,PROP_IS_FORCING_TO_LOWER));
  databaseConnection.setForcingIdentifiersToUpperCase(getBoolean(rootNode,PROP_IS_FORCING_TO_UPPER));
  databaseConnection.setQuoteAllFields(getBoolean(rootNode,PROP_IS_QUOTE_FIELDS));
  databaseConnection.setUsingDoubleDecimalAsSchemaTableSeparator(getBoolean(rootNode,PROP_IS_DECIMAL_SEPERATOR));
  DataNode attrNode=rootNode.getNode(NODE_ATTRIBUTES);
  if (attrNode != null) {
    for (    DataProperty property : attrNode.getProperties()) {
      String code=property.getName();
      String attribute=property.getString();
      databaseConnection.getAttributes().put(code,(attribute == null || attribute.length() == 0) ? "String_Node_Str" : attribute);
    }
  }
  attrNode=rootNode.getNode(NODE_POOLING_PROPS);
  if (attrNode != null) {
    for (    DataProperty property : attrNode.getProperties()) {
      String code=property.getName();
      String attribute=property.getString();
      databaseConnection.getConnectionPoolingProperties().put(code,(attribute == null || attribute.length() == 0) ? "String_Node_Str" : attribute);
    }
  }
  return databaseConnection;
}