private void preparePlugin(ProfilerPlugin plugin, InstrumentContext context) {

        if (plugin instanceof TransformTemplateAware) {
            final TransformTemplate transformTemplate = new TransformTemplate(context);
            ((TransformTemplateAware) plugin).setTransformTemplate(transformTemplate);
        } else if (plugin instanceof MatchableTransformTemplateAware) {
            final MatchableTransformTemplate transformTemplate = new MatchableTransformTemplate(context);
            ((MatchableTransformTemplateAware) plugin).setTransformTemplate(transformTemplate);
        }
    }
TODO duplicated code : com/navercorp/pinpoint/profiler/plugin/ProfilerPluginLoader.java
@param plugin
@param context
agent-module/profiler-test/src/main/java/com/navercorp/pinpoint/profiler/test/MockPluginSetup.java