code: public Class defineClass() {
          byte[] bytes;
          try {
              ByteArrayOutputStream bout = new ByteArrayOutputStream();
              writeTo(bout);
              bytes = bout.toByteArray();
          } catch (IOException e) {
              InternalError ie = new InternalError(e.toString());
              ie.initCause(e);
              throw ie;
          }
  
          if (DEBUG) {
              File file = new File(getClassName().replace('.', '/') + ".class");
              try {
                  File tempDir = new File(System.getProperty("java.io.tmpdir"));
                  file = new File(tempDir, file.getPath());
              } catch (SecurityException e) {
              }
              try {
                  file.getParentFile().mkdirs();
                  System.out.println("RuntimeClassFile writing to " + file);
                  OutputStream out = new FileOutputStream(file);
                  out.write(bytes);
                  out.close();
              } catch (Exception e) {
                  e.printStackTrace();
              }
          }
  
          return mLoader.define(getClassName(), bytes);
      }
docs: Finishes the class definition.