selector.getSelectorName());
if (newLanguageCodes != null) {
Constraint langConstraint = null;
for (String newLanguageCode : newLanguageCodes) {
Constraint currentConstraint = NO_LOCALE
.equals(newLanguageCode) ? qomFactory.not(qomFactory
.propertyExistence(selector.getSelectorName(),
Constants.JCR_LANGUAGE))
: qomFactory
.comparison(
qomFactory.propertyValue(