code: public static void validateSchema(Bean bean) {
          validateId(bean);
          validatePropertyNames(bean);
          validateReferences(bean);
          validateProperties(bean);
          validatePropertyList(bean);
          validatePropertyReferences(bean);
          validatePropertyRefList(bean);
          validatePropertyRefMap(bean);
      }
docs: Validate that the value of the bean is according to schema.