try {
final String uri = content.getSource().toString();
String scheme = content.getSource().getScheme();
if (scheme.equals("http") || scheme.equals("https")) {
getLogger().info(" Proxy: "+content.getSource()+" at "+content.getMatch());
ProxyApplication proxy = new ProxyApplication(context,uri.toString());
proxy.getTunnelService().setEnabled(false);
router.attach(content.getMatch(),proxy);
} else {
// hope the directory resource can handle it
getLogger().info(" Directory: "+content.getSource()+" at "+content.getMatch());
Application app = new Application(context) {