code: public File getAbsoluteFile(final File file) {
          if (System.getSecurityManager() == null)
              return file.getAbsoluteFile();
          return AccessController.doPrivileged(new PrivilegedAction<File>() {
              @Override
              public File run() {
                  return file.getAbsoluteFile();
              }
          }, controlContext);
      }
docs: Returns the absolute file. Same as calling
  file.getAbsoluteFile().
  
  @param file a file object
  @return the absolute file.