public Builder addProperties(JSONObject properties) { if (properties.keySet().contains(JsonStrings.PROPERTIES) && properties.keySet().size() == 1 && (properties.get(JsonStrings.PROPERTIES) instanceof JSONObject)) ret.setProperties(properties); else Log.e(TAG, "Properties not valid"); return this; }