code: public static JVMId forName(String str) 
      throws IllegalArgumentException {
      if(str == null)
        return null;
      try {
        String[] parts = str.split("_");
        if(parts.length == 5) {
          if(parts[0].equals(JVM)) {
            boolean isMap = false;
            if(parts[3].equals("m")) isMap = true;
            else if(parts[3].equals("r")) isMap = false;
            else throw new Exception();
            return new JVMId(parts[1], Integer.parseInt(parts[2]),
                isMap, Integer.parseInt(parts[4]));
          }
        }
      }catch (Exception ex) {//fall below
      }
      throw new IllegalArgumentException("TaskId string : " + str 
          + " is not properly formed");
    }
docs: Construct a JVMId object from given string
  @return constructed JVMId object or null if the given String is null
  @throws IllegalArgumentException if the given string is malformed