code: function _gpfReadNashorn (path) {
      var javaPath = java.nio.file.Paths.get(path);
      if (java.nio.file.Files.exists(javaPath)) {
          return new Promise(function (resolve, reject) {
              var javaInputStream = java.nio.file.Files.newInputStream(javaPath),
                  iStreamReader = new _GpfStreamJavaReadable(javaInputStream),
                  iWritableString = new _GpfStreamWritableString();
              return iStreamReader.read(iWritableString)
                  .then(function () {
                      resolve(iWritableString.toString());
                  })["catch"](reject);
          });
      }
      return Promise.reject(new Error("File not found")); // To be improved
  }
docs: /*jshint rhino: true /*eslint-env rhino