@Override
        public byte[] doInTransform(Instrumentor instrumentor, ClassLoader classLoader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {
            final InstrumentClass target = instrumentor.getInstrumentClass(classLoader, className, classfileBuffer);

            // poll(long timeout, long now)
            InstrumentMethod pollMethod = target.getDeclaredMethod("poll", "long", "long");
            if (pollMethod != null) {
                pollMethod.addInterceptor(NetworkClientPollInterceptor.class);
                if (target.hasField("selector")) {
                    target.addGetter(SelectorGetter.class, "selector");
                }
            }

            return target.toBytecode();
        }
@author Harris Gwag (gwagdalf)
@author Taejin Koo
agent-module/plugins/kafka/src/main/java/com/navercorp/pinpoint/plugin/kafka/KafkaPlugin.java