code: public Object processInvocation(final InterceptorContext context) throws Exception {
          final ClassLoader old;
          Thread thread = Thread.currentThread();
          if (System.getSecurityManager() == null) {
              old = thread.getContextClassLoader();
              thread.setContextClassLoader(classLoader);
          } else {
              old = AccessController.doPrivileged(new SetContextClassLoader(classLoader));
          }
          try {
              return context.proceed();
          } finally {
              if (System.getSecurityManager() == null) {
                  thread.setContextClassLoader(old);
              } else {
                  AccessController.doPrivileged(new SetContextClassLoader(old));
              }
          }
      }
docs: {@inheritDoc}