org.jboss.aop.metadata.SimpleMetaData merged = null;
merged = merge(invocation, ((InvocationBase)invocation).getInstanceResolver(), merged);
org.jboss.aop.metadata.MetaDataResolver threadMetaData = org.jboss.aop.metadata.ThreadMetaData.instance().getAllMetaData(invocation);
merged = merge(invocation, threadMetaData, merged);
if (merged != null)
{
// Invocation data should override all merged data
merged.mergeIn(invocation.getMetaData());
// replace invocation's metadata with merged
invocation.setMetaData(merged);
}
return invocation.invokeNext();