anchor.diff:                              + "let $totalbytes := string(($crawlerStats/@totalbytes) div 1048576.0)\n"
                               + "return (',[',string-join(($jsDateTime,$linkcount,$documentcount,$querytime,$freebytes,$totalbytes,$maxMemory),','),']'),']')\n";
                       try {
  -                        RestDbAdaptor restDbAdaptor = new RestDbAdaptor(new URL(config.getServletContext().getInitParameter("basexRestUrl")), config.getServletContext().getInitParameter("basexUser"), config.getServletContext().getInitParameter("basexPass"));
  +                        RestDbAdaptor restDbAdaptor = new RestDbAdaptor(new URL(basexRestUrl), basexUser, basexPass);
                           jsonDataDetailed = restDbAdaptor.executeQuery(DataBaseManager.defaultDataBase, queryStringDetailed);
                       } catch (MalformedURLException exception2) {
                           errorMessage2 += exception2.getMessage();
  
positive.code:             function drawDetailedVisualization() {
              <%
                  String errorMessage2 = "";
                  if (request.getParameter("databaseName") != null) {
                      String jsonDataDetailed = "[[0,0,0,0]]";
                      String queryStringDetailed = " ('[[0,0,0,0,0,0]',\n" //[''timestamp'', ''linkcount'', ''documentcount'', ''queryms'']',\n"
                              + "let $dbName := '" + request.getParameter("databaseName") + "'\n"
                              + "for $crawlerStats in collection($dbName)/CrawlerStats\n"
                              // this order by seems to cause problems which might depend on which basex version is being used: + "order by $crawlerStats/@timestamp/string()\n"
                              + "let $dateTime := if (empty($crawlerStats/@timestamp)) then \n"
  
negative.code:                 data.addColumn('number', 'mb available');
                  data.addRows(<%=jsonDataDetailed%>.slice(1));
                  var options = {
                      title: 'Crawing Stats for "<%=databaseName%>"',
                      backgroundColor: {fill: 'transparent'}
                  };
  
  