EventListener listener = new GuiceServletContextListener();
context.addEventListener(listener);
logger.info("FeedServer to accept signed requests");
} else if (!FlagConfig.enableOAuthSignedFetch_FLAG.equalsIgnoreCase("false")) {
// Register the OAuth filter
SimpleKeyMananger sKeyManager = new SimpleKeyMananger();
Filter oauthFilter =
createOAuthFilter(FlagConfig.enableOAuthSignedFetch_FLAG.equalsIgnoreCase("true") ?
FlagConfig.OAUTH_SIGNED_FETCH_FILTER_CLASS_NAME :
FlagConfig.enableOAuthSignedFetch_FLAG, sKeyManager);
context.addFilter(new FilterHolder(oauthFilter), "/*", org.mortbay.jetty.Handler.DEFAULT);