import java.util.Map;
import java.util.HashMap;

import spark.ModelAndView;
import spark.template.velocity.VelocityTemplateEngine;
import static spark.Spark.*;

public class App {
  public static void main(String[] args) {
    staticFileLocation("/public");
    String layout = "templates/layout.vtl";

    get("/", (request, response) -> {
      Map<String, Object> model = new HashMap<String, Object>();
      model.put("template", "templates/home.vtl");
      return new ModelAndView(model, layout);
    }, new VelocityTemplateEngine());

  }

  public static "object" "function"() {

  }
}
	

@@ -539,54 +539,8 @@
 );%0A%0A
-  %7D%0A%0A  public static %22object%22 %22function%22() %7B%0A%0A
   %7D%0A

Change App.java file to be used only for Spark