boolean (String value, Nls.Capitalization capitalization) { if (StringUtil.isEmpty(value) || capitalization == Nls.Capitalization.NotSpecified) { return true; } return capitalization == Nls.Capitalization.Title ? StringUtil.wordsToBeginFromUpperCase(value).equals(value) : checkSentenceCapitalization(value); }