code: private String buildAddSql(final JSONObject jsonObject, final List<Object> paramlist, final StringBuilder sql) throws Exception {
          String ret = null;
  
          if (!jsonObject.has(Keys.OBJECT_ID)) {
              if (!(KEY_GEN instanceof DBKeyGenerator)) {
                  ret = (String) KEY_GEN.gen();
                  jsonObject.put(Keys.OBJECT_ID, ret);
              }
          } else {
              ret = jsonObject.getString(Keys.OBJECT_ID);
          }
  
          setProperties(jsonObject, paramlist, sql);
  
          return ret;
      }
docs: buildAddSql.
  
  @param jsonObject jsonObject
  @param paramlist  paramlist
  @param sql        sql
  @return id
  @throws Exception exception