code: protected static void checkNotCreate(String view, String attribute, boolean create) {
      if (create) {
        throw new UnsupportedOperationException(
            "cannot set attribute '" + view + ":" + attribute + "' during file creation");
      }
    }
docs: Checks that the attribute is not being set by the user on file creation, throwing an
  unsupported operation exception if it is.