code: private static void serializeFsPermissions(State state, String key, FsPermission fsPermissions) {
      state.setProp(key, String.format("%04o", fsPermissions.toShort()));
    }
docs: Helper method that serializes a {@link FsPermission} object.