/** * Returns the object for the specified <code>key</code> that is bound to * the current thread. * * @param key the key that identifies the value to return * @return the object keyed by <code>key</code> or <code>null</code> if * no value exists for the specified <code>key</code> */ public static Object get(Object key) { if (log.isTraceEnabled()) { String msg = "get() - in thread [" + Thread.currentThread().getName() + "]"; log.trace(msg); } Object value = getValue(key); if ((value != null) && log.isTraceEnabled()) { String msg = "Retrieved value of type [" + value.getClass().getName() + "] for key [" + key + "] " + "bound to thread [" + Thread.currentThread().getName() + "]"; log.trace(msg); } return value; }