code: @VisibleForTesting
    public static Optional<WhitelistBlacklist> getViewWhiteBackListFromWorkUnit(WorkUnitState workUnit) {
      Optional<WhitelistBlacklist> optionalViewWhiteBlacklist = Optional.absent();
  
      if (workUnit == null) {
        return optionalViewWhiteBlacklist;
      }
      if (workUnit.contains(HIVE_CONVERSION_VIEW_REGISTRATION_WHITELIST)
          || workUnit.contains(HIVE_CONVERSION_VIEW_REGISTRATION_BLACKLIST)) {
        String viewWhiteList = workUnit.getProp(HIVE_CONVERSION_VIEW_REGISTRATION_WHITELIST, StringUtils.EMPTY);
        String viewBlackList = workUnit.getProp(HIVE_CONVERSION_VIEW_REGISTRATION_BLACKLIST, StringUtils.EMPTY);
        try {
          optionalViewWhiteBlacklist = Optional.of(new WhitelistBlacklist(viewWhiteList, viewBlackList));
        } catch (IOException e) {
          Throwables.propagate(e);
        }
      }
  
      return optionalViewWhiteBlacklist;
    }
docs: *
  Get Hive view registration whitelist blacklist from Workunit state
  @param workUnit Workunit containing view whitelist blacklist property
  @return Optional WhitelistBlacklist if Workunit contains it