if (handle != null) {
this.sitemapExecutor.leaveSitemap(this, environment.getObjectModel());
// invoke listeners
// 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);
}