Value (NlsInfo info) { if (info instanceof NlsInfo.Localized) { Nls.Capitalization capitalization = ((NlsInfo.Localized)info).getCapitalization(); if (capitalization != Nls.Capitalization.NotSpecified) { return new DeclaredValue(capitalization); } } return null; }