Program: 84131
Project: 84131
Buggy source:
public String getSqlStatement(Database database) throws StatementNotSupportedOnDatabaseException {
  if (!supportsDatabase(database)) {
    throw new StatementNotSupportedOnDatabaseException(this,database);
  }
  StringBuffer buffer=new StringBuffer();
  buffer.append("String_Node_Str");
  buffer.append(getSequenceName());
  if (getIncrementBy() != null) {
    if (database instanceof FirebirdDatabase || database instanceof HsqlDatabase) {
      throw new StatementNotSupportedOnDatabaseException("String_Node_Str",this,database);
    }
 else {
      buffer.append("String_Node_Str").append(getIncrementBy());
    }
  }
  if (getMinValue() != null) {
    if (database instanceof FirebirdDatabase || database instanceof HsqlDatabase) {
      buffer.append("String_Node_Str").append(getMinValue());
    }
 else {
      buffer.append("String_Node_Str").append(getMinValue());
    }
  }
  if (getMaxValue() != null) {
    if (database instanceof FirebirdDatabase || database instanceof HsqlDatabase) {
      throw new StatementNotSupportedOnDatabaseException("String_Node_Str",this,database);
    }
 else {
      buffer.append("String_Node_Str").append(getMaxValue());
    }
  }
  if (getOrdered() != null) {
    if (database instanceof OracleDatabase || database instanceof DB2Database || database instanceof MaxDBDatabase) {
      if (getOrdered()) {
        buffer.append("String_Node_Str");
      }
    }
 else {
      throw new StatementNotSupportedOnDatabaseException("String_Node_Str",this,database);
    }
  }
  return buffer.toString();
}

Fixed version (ground truth):
public String getSqlStatement(Database database) throws StatementNotSupportedOnDatabaseException {
  if (!supportsDatabase(database)) {
    throw new StatementNotSupportedOnDatabaseException(this,database);
  }
  StringBuffer buffer=new StringBuffer();
  buffer.append("String_Node_Str");
  buffer.append(database.escapeSequenceName(getSchemaName(),getSequenceName()));
  if (getIncrementBy() != null) {
    if (database instanceof FirebirdDatabase || database instanceof HsqlDatabase) {
      throw new StatementNotSupportedOnDatabaseException("String_Node_Str",this,database);
    }
 else {
      buffer.append("String_Node_Str").append(getIncrementBy());
    }
  }
  if (getMinValue() != null) {
    if (database instanceof FirebirdDatabase || database instanceof HsqlDatabase) {
      buffer.append("String_Node_Str").append(getMinValue());
    }
 else {
      buffer.append("String_Node_Str").append(getMinValue());
    }
  }
  if (getMaxValue() != null) {
    if (database instanceof FirebirdDatabase || database instanceof HsqlDatabase) {
      throw new StatementNotSupportedOnDatabaseException("String_Node_Str",this,database);
    }
 else {
      buffer.append("String_Node_Str").append(getMaxValue());
    }
  }
  if (getOrdered() != null) {
    if (database instanceof OracleDatabase || database instanceof DB2Database || database instanceof MaxDBDatabase) {
      if (getOrdered()) {
        buffer.append("String_Node_Str");
      }
    }
 else {
      throw new StatementNotSupportedOnDatabaseException("String_Node_Str",this,database);
    }
  }
  return buffer.toString();
}