// TODO, assume the url is a file path for now.
@GET
  @Path("getDefaultNotebook")
  @Produces(MediaType.TEXT_PLAIN)
  public String getDefaultNotebook() {
    final String defaultNotebookUrl = this.bkConfig.getDefaultNotebookUrl();
    // TODO, assume the url is a file path for now.
    java.nio.file.Path defaultNotebookFile = Paths.get(defaultNotebookUrl);
    String content = this.utils.readFile(defaultNotebookFile);
    if (content == null) {
      System.out.println("Warning, default notebook is empty");
      return "";
    }
    return clean(content);
  }
public String getDefaultNotebook() {
final String defaultNotebookUrl = this.bkConfig.getDefaultNotebookUrl();
// TODO, assume the url is a file path for now.
java.nio.file.Path defaultNotebookFile = Paths.get(defaultNotebookUrl);
String content = this.utils.readFile(defaultNotebookFile);
@GET
@Path("getDefaultNotebook")
@Produces(MediaType.TEXT_PLAIN)
public String getDefaultNotebook() {
final String defaultNotebookUrl = this.bkConfig.getDefaultNotebookUrl();
// TODO, assume the url is a file path for now.
java.nio.file.Path defaultNotebookFile = Paths.get(defaultNotebookUrl);
String content = this.utils.readFile(defaultNotebookFile);
if (content == null) {
System.out.println("Warning, default notebook is empty");
return "";
}
return clean(content);
}
@GET
@Path("getDefaultNotebook")
@Produces(MediaType.TEXT_PLAIN)
public String getDefaultNotebook() {
final String defaultNotebookUrl = this.bkConfig.getDefaultNotebookUrl();
// TODO, assume the url is a file path for now.
java.nio.file.Path defaultNotebookFile = Paths.get(defaultNotebookUrl);
String content = this.utils.readFile(defaultNotebookFile);
if (content == null) {
System.out.println("Warning, default notebook is empty");
return "";
}
return clean(content);
}