code: public static Class getBeanTypeByName(String className, SpiEbeanServer server) {
          if (className == null) return null;
          for (BeanDescriptor descriptor : server.getBeanDescriptors()) {
              Class beanClass = descriptor.getBeanType();
              if (beanClass.getName().equalsIgnoreCase(className)
                      || beanClass.getSimpleName().equalsIgnoreCase(className)) {
                  return beanClass;
              }
          }
          return null;
      }
docs: <p>getBeanTypeByName.</p>
  
  @param className a {@link java.lang.String} object.
  @param server    a {@link io.ebeaninternal.api.SpiEbeanServer} object.
  @return a {@link java.lang.Class} object.