}
return domain;
}
domain = delegate.getDomain( id );
if ( domain != null ) {
SecurityHelper helper = new SecurityHelper();
domain = helper.createSecureDomain( this, domain );
// cache domain with the key we used to look it up, not whatever new id it might have now
if ( logger.isDebugEnabled() ) {
logger.debug( "Caching domain by session: " + key ); //$NON-NLS-1$
}
cacheManager.putInRegionCache( CACHE_REGION, key, domain );