// only invoke if pipeline is not internally
if (!context.isBuildingPipelineOnly()) {
final LeaveSitemapEvent leaveEvent = new LeaveSitemapEvent(this, environment);
final Iterator i = this.leaveSitemapEventListeners.iterator();
while (i.hasNext()) {
final LeaveSitemapEventListener current = (LeaveSitemapEventListener) i.next();
current.leftSitemap(leaveEvent);
}
}
WebAppContextUtils.leavingContext(this.webAppContext, handle);
}