Server service;
try {
service = new Server(portOption, "feed", !clearOption);
if (apiOption || guiOption) {
service.getServletContextHandler().addServlet(
new ServletHolder(new AppServlet(!apiOption)), "/*");
URL url = service.getServiceURL();
String path = url.getPath();
int i = url.toString().indexOf(path);
if (i != -1) {
path = url.toString().substring(0, i);