private void saveCswCapabilitiesInfo(MultiValueMap parameters) throws Exception {
final List<Language> langs = languageRepository.findAll();
for (Language lang : langs) {
CswCapabilitiesInfo cswCapInfo = cswCapabilitiesInfoFieldRepository.findCswCapabilitiesInfo(lang.getId());
String langId = lang.getId();
if (parameters.get("csw.title_" + langId) != null) {
String title = (String)((LinkedList) parameters.get("csw.title_" + langId)).get(0);
if (StringUtils.isNotEmpty(title)) {
cswCapInfo.setTitle(title);
}
}
if (parameters.get("csw.abstract_" + langId) != null) {
String abs = (String)((LinkedList) parameters.get("csw.abstract_" + langId)).get(0);
if (StringUtils.isNotEmpty(abs)) {
cswCapInfo.setAbstract(abs);
}
}
if (parameters.get("csw.fees_" + langId) != null) {
String fees = (String)((LinkedList) parameters.get("csw.fees_" + langId)).get(0);
if (StringUtils.isNotEmpty(fees)) {
cswCapInfo.setFees(fees);
}
}
if (parameters.get("csw.accessConstraints_" + langId) != null) {
String accessConstraints = (String)((LinkedList) parameters.get("csw.accessConstraints_" + langId)).get(0);
if (StringUtils.isNotEmpty(accessConstraints)) {
cswCapInfo.setAccessConstraints(accessConstraints);
}
}
// Save item