code: public static int getRootID(String id) {
  		if (id == null || id.equals("")) return -1;
  		String[] strIds;
  		if (id.contains("-")) strIds = id.split("-");
  		else return -1;
  		try {
  			return Integer.parseInt(strIds[0]);
  		} catch (NumberFormatException e) {
  			return -1;
  		}
  	}
docs: get first id in a combined id, ie, get 7 from 7-54<br/>
  
  useful for getting wvw map id from wvw objective id, or
  getting back story question id from back story answer id
  
  @param id combined id in the form of [0-9]+-\b+
  @return root id | -1 for invalid input