code: protected Attributes getAttributes(final File file) throws IOException {
          FileInputStream fis = null;
          try {
              fis = AccessController.doPrivileged(new PrivilegedExceptionAction<FileInputStream>() {
                  @Override
                  public FileInputStream run() throws IOException {
                      return new FileInputStream(file);
                  }
              });
          } catch (PrivilegedActionException pae) {
              throw (IOException) pae.getException();
          }
          return new Manifest(fis).getMainAttributes();
      }
docs: returns the contents of manifest file (.mf) as the Attribute object.