/* */ {
/* 168 */ if (getBeforeDeliveryInvoke()) {
/* 169 */ throw new IllegalStateException("Missing afterDelivery from the previous beforeDelivery for message endpoint " + getProxyString(mi));
/* */ }
/* */
/* 172 */ MessageDrivenContainer container = getContainer(mi);
/* 173 */ synchronized (this)
/* */ {
/* 175 */ this.oldClassLoader = GetTCLAction.getContextClassLoader(this.inUseThread);
/* 176 */ SetTCLAction.setContextClassLoader(this.inUseThread, container.getClassLoader());
/* */ }
/* 178 */ if (this.trace) {
/* 179 */ log.trace("MessageEndpoint " + getProxyString(mi) + " set context classloader to " + container.getClassLoader());
/* */ }
/* */
/* */ try
/* */ {
/* 184 */ startTransaction("beforeDelivery", mi, container);