docs: private static void loadContent(String contentDirectory) {    
      File gpDir = new File(contentDirectory);
      final long startTime = System.currentTimeMillis();
      int filesLoaded = 0;
      int fileFailures = 0;
      int fileNewer = 0;
      long bytesLoaded = 0;
      String codeSourcePath = TSDMain.class.getProtectionDomain().getCodeSource().getLocation().getPath();
      File file = new File(codeSourcePath);
      if( codeSourcePath.endsWith(".jar") && file.exists() && file.canRead() ) {
        JarFile jar = null;
        ChannelBuffer contentBuffer = ChannelBuffers.dynamicBuffer(300000);
        try {
          jar = new JarFile(file);
          final Enumeration<JarEntry> entries = jar.entries(); 
          while(entries.hasMoreElements()) {
            JarEntry entry = entries.nextElement();
            final String name = entry.getName();
            if (name.startsWith(CONTENT_PREFIX + "/")) { 
              final int contentSize = (int)entry.getSize();
              final long contentTime = entry.getTime();
              if(entry.isDirectory()) {
                new File(gpDir, name).mkdirs();
                continue;
              }
              File contentFile = new File(gpDir, name.replace(CONTENT_PREFIX + "/", ""));
              if( !contentFile.getParentFile().exists() ) {
                contentFile.getParentFile().mkdirs();
              }
              if( contentFile.exists() ) {
                if( contentFile.lastModified() >= contentTime ) {
                  log.debug("File in directory was newer [{}]", name);
                  fileNewer++;
                  continue;
                }
                contentFile.delete();
              }
              log.debug("Writing content file [{}]", contentFile );
              contentFile.createNewFile();
              if( !contentFile.canWrite() ) {
                log.warn("Content file [{}] not writable", contentFile);
                fileFailures++;
                continue;
              }
              FileOutputStream fos = null;
              InputStream jis = null;
              try {
                fos = new FileOutputStream(contentFile);
                jis = jar.getInputStream(entry);
                contentBuffer.writeBytes(jis, contentSize);
                contentBuffer.readBytes(fos, contentSize);
                fos.flush();
                jis.close(); jis = null;
                fos.close(); fos = null;
                filesLoaded++;
                bytesLoaded += contentSize;
                log.debug("Wrote content file [{}] + with size [{}]", contentFile, contentSize );
              } finally {
                if( jis!=null ) try { jis.close(); } catch (Exception ex) {}
                if( fos!=null ) try { fos.close(); } catch (Exception ex) {}
              }
            }  // not content
          } // end of while loop
          final long elapsed = System.currentTimeMillis()-startTime;
          StringBuilder b = new StringBuilder("\n\n\t===================================================\n\tStatic Root Directory:[").append(contentDirectory).append("]");
          b.append("\n\tTotal Files Written:").append(filesLoaded);
          b.append("\n\tTotal Bytes Written:").append(bytesLoaded);
          b.append("\n\tFile Write Failures:").append(fileFailures);
          b.append("\n\tExisting File Newer Than Content:").append(fileNewer);
          b.append("\n\tElapsed (ms):").append(elapsed);
          b.append("\n\t===================================================\n");
          log.info(b.toString());
        } catch (Exception ex) {
          log.error("Failed to export ui content", ex);       
        } finally {
          if( jar!=null ) try { jar.close(); } catch (Exception x) { /* No Op */}
        }
      }  else { // end of was-not-a-jar
        log.warn("\n\tThe OpenTSDB classpath is not a jar file, so there is no content to unload.\n\tBuild the OpenTSDB jar and run 'java -jar <jar> --d <target>'.");
      }
    }