code: private long extractNextId(Matcher matcher, String msg) {
  		if (!matcher.find())
  			throw new IllegalStateException("Facebook changed the error msg for page migration to something unfamiliar. The new msg is: " + msg);
  
  		String idStr = matcher.group().substring("ID ".length());
  		return Long.parseLong(idStr);
  	}
docs: Gets the next id out of the matcher