final LifecycleListener listener = new LifecycleListener(bundleRes, ResourcesPlugin.getWorkspace());
listener.addListener(new IResourceLifecycleListener()
{
public EventResult acceptEvent(final ResourceLifecycleEvent event)
{
EventResult result = EventResult.getDefaultEventResult();
if (event.getEventType() == EventType.RESOURCE_INACCESSIBLE)
{
Map<String, BundleFileCacheInfo> bundleFileCache = getBundleFileCache(project);
bundleFileCache.remove(resourcePathStr);