code: public static FsPermission deserializeFsPermission(State props, String propName, FsPermission defaultPermission) {
      short mode = props.getPropAsShortWithRadix(propName, defaultPermission.toShort(),
          ConfigurationKeys.PERMISSION_PARSING_RADIX);
      return new FsPermission(mode);
    }
docs: Get {@link FsPermission} from a {@link State} object.
  
  @param props A {@link State} containing properties.
  @param propName The property name for the permission. If not contained in the given state,
  defaultPermission will be used.
  @param defaultPermission default permission if propName is not contained in props.
  @return An {@link FsPermission} object.