public String getSyncPath(Child child, User currentUser) throws JSONException { if (currentUser.isVerified()) { return child.isNew() ? CHILDREN_API_PATH : new StringBuilder(CHILDREN_API_PATH) .append("/") .append(child.get(internal_id.getColumnName())) .toString(); } else { return UNVERIFIED_USER_CHILDREN_API_PATH; } }