private static String normalize(@Nullable String value, @NotNull String defaultValue) {
    return value == null || StringUtil.isEmptyOrSpaces(value) ? defaultValue : value.trim();
  }
private static String normalize(@Nullable String value, @NotNull String defaultValue)