void (String agentArgs, Instrumentation inst) { try { log("Injecting LogLoadedApplicationClassesAgent: " + agentArgs); TransitiveClassesCollector myAllClasses = new TransitiveClassesCollector(); myAllClasses.addClasses(inst); logDetectedClasses(true, new File(agentArgs), myAllClasses.getAllClasses()); log("LogLoadedApplicationClassesAgent completed"); } catch (Throwable t) { log("Failed to setup LogLoadedApplicationClassesAgent agent", t); } }