docs: public byte[] buildClass( ClassDefinition classDef, ClassLoader classLoader ) throws IOException,
              SecurityException,
              IllegalArgumentException,
              ClassNotFoundException {
  
          if ( ! ( classDef instanceof EnumClassDefinition ) ) {
              throw new RuntimeException( "FATAL : Trying to create an enum out of a bean class definition  " + classDef );
          }
  
          EnumClassDefinition edef = (EnumClassDefinition) classDef;
  
          ClassWriter cw = this.buildClassHeader( classLoader, edef );
  
          this.buildLiterals(cw,
                  edef);
  
          this.buildFields( cw,
                  edef );
  
  
          this.buildConstructors( cw,
                  edef );
  
          this.buildGettersAndSetters( cw,
                  edef );
  
          this.buildEqualityMethods( cw,
                  edef );
  
          this.buildToString( cw,
                  edef );
  
          cw.visitEnd();
  
          byte[] serializedClass = cw.toByteArray();
  
          return serializedClass;
      }