JMSContextEntry contextEntry = entry.getValue();
String ipId = contextEntry.getInjectionPointId();
JMSContext context = contextEntry.getCtx();
if (context != null) {
ComponentInvocation inv = contextEntry.getComponentInvocation();
if (inv != null && currentInv != inv) invMgr.preInvoke(inv);
try {
context.close();
logger.log(Level.FINE, localStrings.getLocalString("JMSContext.impl.close",
"Closed JMSContext instance associated with id {0}: {1}.",
ipId, context.toString()));