/**
   * INTERNAL: Should be called only by the agent. (when weaving classes) If succeeded return true,
   * false otherwise.
   */
  protected static void initializeFromAgent(Instrumentation instrumentation) throws Exception {
    AbstractSessionLog.getLog().setLevel(JavaSECMPInitializer.getTopLinkLoggingLevel());

    // Squirrel away the instrumentation for later
    globalInstrumentation = instrumentation;
    // Create JavaSECMPInitializer singleton
    javaSECMPInitializer = new JavaSECMPInitializer();
    // Initialize it
    javaSECMPInitializer.initialize(new HashMap(), javaSECMPInitializer);
  }