code: private void doLoadFromPlugin(final String policyImpl, final IAsyncResultHandler<IPolicy> handler) {
          PluginCoordinates coordinates = PluginCoordinates.fromPolicySpec(policyImpl);
          if (coordinates == null) {
              handler.handle(AsyncResultImpl.<IPolicy>create(new PolicyNotFoundException(policyImpl)));
              return;
          }
          int ssidx = policyImpl.indexOf('/');
          if (ssidx == -1) {
              handler.handle(AsyncResultImpl.<IPolicy>create(new PolicyNotFoundException(policyImpl)));
              return;
          }
          final String classname = policyImpl.substring(ssidx + 1);
          this.pluginRegistry.loadPlugin(coordinates, new IAsyncResultHandler<Plugin>() {
              @Override
              public void handle(IAsyncResult<Plugin> result) {
                  if (result.isSuccess()) {
                      IPolicy rval;
                      Plugin plugin = result.getResult();
                      PluginClassLoader pluginClassLoader = plugin.getLoader();
                      ClassLoader oldCtxLoader = Thread.currentThread().getContextClassLoader();
                      try {
                          Thread.currentThread().setContextClassLoader(pluginClassLoader);
                          Class<?> c = pluginClassLoader.loadClass(classname);
                          rval = (IPolicy) c.newInstance();
                      } catch (Exception e) {
                          handler.handle(AsyncResultImpl.<IPolicy>create(new PolicyNotFoundException(policyImpl, e)));
                          return;
                      } finally {
                          Thread.currentThread().setContextClassLoader(oldCtxLoader);
                      }
  
                      policyCache.put(policyImpl, rval);
                      handler.handle(AsyncResultImpl.create(rval));
                  } else {
                      handler.handle(AsyncResultImpl.<IPolicy>create(new PolicyNotFoundException(policyImpl, result.getError())));
                  }
              }
          });
      }
docs: Loads a policy from a plugin.
  @param policyImpl
  @param handler