code: @SuppressWarnings("unchecked")
      public final Class createClass(final SgClass modelClass) {
          // We don't want to create it if it already exists
          Class implClass = loadClass(modelClass);
          if (implClass == null) {
              try {
                  // Create class
                  final CtClass clasz = createCtClass(modelClass);
                  implClass = clasz.toClass(classLoader, domain);
              } catch (final NotFoundException e) {
                  throw new RuntimeException(e);
              } catch (final CannotCompileException e) {
                  throw new RuntimeException(e);
              }
          }
          return implClass;
      }
docs: Generates the byte code for a model class and returns it. The class will
  only be created if it's not known (<code>Class.forName(..)</code> throws
  a <code>ClassNotFoundException</code>). If it's known the class will be
  returned instead of creating a new one.
  
  @param modelClass
  Model class to create the byte code for.
  
  @return Class.