/**
 * @license
 * Copyright 2017 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

package foam.nanos.http;

import com.sun.net.httpserver.*;
import foam.core.*;
import foam.nanos.*;
import java.io.IOException;
import java.net.InetSocketAddress;

public class NanoHttpServer
  extends    ContextAwareSupport
  implements NanoService
{

  protected HttpServer server_;
  protected int        port_ = 8080;

  public void start() {
    try {
      Class cls = Class.forName("org.apache.tomcat.SimpleInstanceManager");
      System.out.println("Tomcat is running!");
      return;
    } catch(ClassNotFoundException ex) {
      startNanos();
    }
  }

  public void startNanos() {
    System.out.println("Starting HTTP Server on port " + port_);
    try {
      server_ = HttpServer.create(new InetSocketAddress(port_), 0);
      server_.createContext("/", new NanoHttpHandler(getX()));
      server_.start();
    } catch(IOException e) {
      e.printStackTrace();
    }
  }
}

@@ -602,22 +602,8 @@
 %22);%0A
-      return;%0A
     
@@ -764,16 +764,17 @@
 port_);%0A
+%0A
     try 

Remove redundant return.