private void verifyPathIsAccessible(String path, String errorMessage) {
   GcsPath gcsPath = getGcsPath(path);
   try {
     checkArgument(dataflowOptions.getGcsUtil().bucketExists(gcsPath), errorMessage, path);
   } catch (IOException e) {
     throw new RuntimeException(
         String.format("Unable to verify that GCS bucket gs://%s exists.", gcsPath.getBucket()),
         e);
   }
 }