code: private void validateOutputPath(final File path) {
          if (path.canWrite()) return;
  
          // If the path doesn't exist...
          if (!path.exists()) {
              // ... try creating it...
              if (!path.mkdirs()) {
                  // ... or die trying.
                  String err = DIRECTORY_CREATION_FAILED.concat(path.toString());
                  throw new BELRuntimeException(err, UNRECOVERABLE_ERROR);
              }
              return;
          }
  
          // ... can't write to it.
          String err = CANT_WRITE_TO_PATH.concat(path.toString());
          throw new BELRuntimeException(err, UNRECOVERABLE_ERROR);
      }
docs: Throws a system configuration error if the {@code path} cannot be written
  to. If {@code path} does not exist, an attempt to create it will be made.
  
  @param path Path for validation