{
final String key = AttributeUtils.getKey(getClass(), "openIndexes");
if (context.getAttribute(key) == null)
{
context.setAttribute(key, Maps.newIdentityHashMap());
context.addListener(new IControllerContextListener()
{
public void beforeDisposal(IControllerContext context)
{
closeAllIndexes();
}