code: public static MethodInfo getTemplateExecuteMethod(InputStream in) throws IOException {
  
          ClassFile classFile = ClassFile.readFrom(in);
  
          MethodInfo executeMethod = null;
          MethodInfo[] all = classFile.getMethods();
  
          // find the execute method on this template
          for (int i = 0; i < all.length; i++) {
              if (JavaClassGenerator.EXECUTE_METHOD_NAME.equals(
                  all[i].getName()) && all[i].getModifiers().isStatic()) {
                  executeMethod = all[i];
                  break;
              }
          }
          in.close();
          return executeMethod;
      }
docs: Find the execute method on the class file input stream.