code: public static Object nativeCodeOf(Class<?> cdefType, Object code) { // old method
          assertArgumentNotNull("cdefType", cdefType);
          assertArgumentNotNull("code", code);
          final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(cdefType);
          final String methodName = "codeOf";
          final Method method;
          try {
              method = beanDesc.getMethod(methodName, new Class<?>[] { Object.class });
          } catch (BeanMethodNotFoundException e) {
              String msg = "Failed to get the method " + methodName + "() of the classification type: " + cdefType;
              throw new ClassificationCodeOfMethodNotFoundException(msg, e);
          }
          return DfReflectionUtil.invokeStatic(method, new Object[] { code });
      }
docs: -------