public static ResponseCode createExtension(String name){
  StringBuffer buffer=new StringBuffer(name.length() + 2);
  if (!name.startsWith("X")) {
    buffer.append('X');
  }
  buffer.append(name);
  return new ResponseCode(buffer.toString());
}

public static ResponseCode createExtension ( String name ) { StringBuffer buffer = new StringBuffer ( name . length ( ) + 2 ) ; if ( ! name . startsWith ( "X" ) ) { buffer . append ( 'X' ) ; } buffer . append ( name ) ; return new ResponseCode ( buffer . toString ( ) ) ; }
creates an extension response code . names that do not begin with ' x ' will have ' x ' prepended
