private static Pair<String,String> parseStrategy(String desc){
  String[] arg=desc.split("\\(|\\)");
  Pair<String,String> rval=new Pair<String,String>(arg[0],"");
  if (arg.length > 1) {
    rval.setSecond(arg[1]);
  }
  return rval;
}

private static Pair < String , String > parseStrategy ( String desc ) { String [ ] arg = desc . split ( "\\(|\\)" ) ; Pair < String , String > rval = new Pair < String , String > ( arg [ 0 ] , "" ) ; if ( arg . length > 1 ) { rval . setSecond ( arg [ 1 ] ) ; } return rval ; }
extract strategy name and an optional parameter from a strategy description .
