docs: public static <T> T cloneBean(T from, Class<T> beanClass) {
          if (from == null || from instanceof Collection || from.getClass().isArray()) {
              throw new IllegalArgumentException("Only java bean class is allowed here.");
          }
          JSONObject jsonObject = (JSONObject) JSON.toJSON(from);
          return jsonObject.toJavaObject(beanClass);
      }