@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);
            // Add server metadata
            // Tomcat 6
            final InstrumentMethod startEditor = target.getDeclaredMethod("start");
            if (startEditor != null) {
                startEditor.addInterceptor(StandardServiceStartInterceptor.class);
            }

            // Tomcat 7
            final InstrumentMethod startInternalEditor = target.getDeclaredMethod("startInternal");
            if (startInternalEditor != null) {
                startInternalEditor.addInterceptor(StandardServiceStartInterceptor.class);
            }
            return target.toBytecode();
        }
@author Jongho Moon
@author jaehong.kim
agent-module/plugins/tomcat/src/main/java/com/navercorp/pinpoint/plugin/tomcat/TomcatPlugin.java