final EJBContainer ejbContainer = EJBContainer.getEJBContainer(advisor);
if (ejbContainer instanceof ServiceContainer || ejbContainer instanceof MessagingContainer)
{
return invocation.invokeNext();
}
final SessionSpecContainer sessionContainer = (SessionSpecContainer) EJBContainer.getEJBContainer(advisor);
final AsyncInvocationMap currentInvocations = sessionContainer.getCurrentAsyncInvocations();
// Put the current ID into the Map
if (id != null)
{
currentInvocations.put(id, false);