ComponentInvocation inv = new WebComponentInvocation(wm, instance);
try {
im.preInvoke(inv);
if (eventType == InstanceEvent.EventType.BEFORE_SERVICE_EVENT) {
// Emit monitoring probe event
wm.beforeServiceEvent(event.getWrapper().getName());
// enlist resources with TM for service method
Transaction tran;
if ((tran = tm.getTransaction()) != null) {
inv.setTransaction(tran);
}