/* */ {
/* 109 */ if (id == null) throw new IllegalArgumentException("Can't get an object with a null key");
/* */ EnterpriseContext ctx;
/* 113 */ synchronized (getCacheLock())
/* */ {
/* 115 */ CachePolicy cache = getCache();
/* 116 */ ctx = (EnterpriseContext)cache.get(id);
/* 117 */ if (ctx == null)
/* */ {
/* */ try
/* */ {
/* 121 */ ctx = acquireContext();
/* 122 */ setKey(id, ctx);
/* 123 */ if (!doActivate(ctx))
/* */ {
/* 125 */ return ctx;
/* 126 */ }logActivation(id);
/* */
/* 129 */ cache.insert(id, ctx);
/* */ }
/* */ catch (Throwable x)
/* */ {
/* 133 */ log.debug("Activation failure", x);
/* 134 */ throw new NoSuchObjectException(x.getMessage());