docs: static long getFileLength(final File fileToCheck)
  	  {
  	    try {
  	      Long size = getInstance().doPrivileged(
  	        new PrivilegedAction<Long>() {
  	          public Long run() {
  	            return Long.valueOf(fileToCheck.length());
  	          }
  	        }
  	      );
  	      return size.longValue();
  	    }
  	    catch (SecurityException se) {
  			// TODO: Add logging here but be careful since this code is used in logging logic itself
  			//       and may result in an indefinite loop.
  	    	return 0L;
  	    }
  	  }