code: public static void premain(String args) {
          if (args == null) {
              args = "config=config.yaml";
          }
  
          try {
              start(args.split(","));
          } catch (Exception e) {
              System.err.println("Hawkular Java Agent failed at startup");
              e.printStackTrace(System.err);
          }
      }
docs: an agent can be started in a VM as a javaagent allowing it to be embedded with some other main app