public <T extends C> T findCoprocessor(Class<T> cls) {
    for (E env : coprocEnvironments) {
      if (cls.isAssignableFrom(env.getInstance().getClass())) {
        return (T) env.getInstance();
      }
    }
    return null;
  }
Find coprocessors by full class name or simple name.
hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java