}
return ( (ServiceReferenceInstance.ServiceInvocationHandler) handler ).module();
}
else if( compositeOrServiceReferenceOrUow instanceof UnitOfWork )
{
ModuleUnitOfWork unitOfWork = (ModuleUnitOfWork) compositeOrServiceReferenceOrUow;
return unitOfWork.module();
}
else if( compositeOrServiceReferenceOrUow instanceof ServiceReferenceInstance )
{
ServiceReferenceInstance<?> reference = (ServiceReferenceInstance<?>) compositeOrServiceReferenceOrUow;
return reference.module();