You could use ParseUtils.requireAttribute("id")...