private static String[] appendEnabled(final String[] options){
  for (  final String option : options) {
    if (option.equals("enabled")) {
      return options;
    }
  }
  String[] result=new String[options.length + 1];
  result[0]="enabled";
  System.arraycopy(options,0,result,1,options.length);
  return result;
}

private static String [ ] appendEnabled ( final String [ ] options ) { for ( final String option : options ) { if ( option . equals ( "enabled" ) ) { return options ; } } String [ ] result = new String [ options . length + 1 ] ; result [ 0 ] = "enabled" ; System . arraycopy ( options , 0 , result , 1 , options . length ) ; return result ; }
each phase has to support the enabled option . we will add it if necessary .
