VirtualFileHandler contextHandler = context.getRoot();
// the file is the context root, hence possible registry candidate
if (fileHandler.equals(contextHandler))
{
VFSRegistry registry = VFSRegistry.getInstance();
registry.removeContext(context);
}
}
catch (Exception e)
{
log.debug("Exception removing cached context, file=" + file, e);