/** Initialize the environment */
 public void startup() throws IOException {
   if (state == Coprocessor.State.INSTALLED || state == Coprocessor.State.STOPPED) {
     state = Coprocessor.State.STARTING;
     Thread currentThread = Thread.currentThread();
     ClassLoader hostClassLoader = currentThread.getContextClassLoader();
     try {
       currentThread.setContextClassLoader(this.getClassLoader());
       impl.start(this);
       state = Coprocessor.State.ACTIVE;
     } finally {
       currentThread.setContextClassLoader(hostClassLoader);
     }
   } else {
     LOG.warn(
         "Not starting coprocessor "
             + impl.getClass().getName()
             + " because not inactive (state="
             + state.toString()
             + ")");
   }
 }