// necessary for configuration
AspectManager.instance();
if (agentArgs != null && agentArgs.indexOf("-hotSwap") != -1)
{
// setting dynamic aop strategy: hot swap classes through InstrumentationAdapter
DynamicAOPStrategy strategy = new HotSwapStrategy(new InstrumentationAdapter(inst));
AspectManager.instance().setDynamicAOPStrategy(strategy);
AspectManager.setPrune(false); // no prune
}
inst.addTransformer(new AOPTransformer());
}