templatesFactory = PageFlowUtils.createURLTemplatesFactory( servletContext );
// get the known/req tokens from the default formatter for the factory to use to verify templates
templatesFactory.setKnownTokens( formatter.getKnownTokens() );
templatesFactory.setRequiredTokens( formatter.getRequiredTokens() );
templatesFactory.load( servletContext );
// set the URLTemplatesFactory attribute on the context.
URLTemplatesFactory.initServletContext( servletContext, templatesFactory );
}
}