environment = facade.getDelegate();
}
// test if this is a call from flow
boolean isRedirect = (environment.getObjectModel().remove("cocoon:forward") == null);
final SitemapSourceInfo info = SitemapSourceInfo.parseURI(environment, uri);
Environment newEnv = new ForwardEnvironmentWrapper(environment, info);
if (isRedirect) {
((ForwardEnvironmentWrapper) newEnv).setInternalRedirect(true);
}