* @return the ReWrite Configuration
*/
@Override
public Configuration getConfiguration(final ServletContext context) {
return ConfigurationBuilder.begin().defineRule()
.when(Direction.isInbound().and(Path.matches("/").or(Path.matches("/index.jsf"))).and(new HttpCondition() {
@Override
public boolean evaluateHttp(HttpServletRewrite httpServletRewrite, EvaluationContext evaluationContext) {
HttpServletRequest request = httpServletRewrite.getRequest();
String userAgentStr = request.getHeader("user-agent");
String httpAccept = request.getHeader("Accept");