+ stringToJCRSearchExp(languageCode.trim()));
}
}
} else {
try {
JCRStoreService jcrService = ServicesRegistry.getInstance()
.getJCRStoreService();
JCRSessionWrapper session = jcrService.getSessionFactory()
.getCurrentUserSession();
if (session.getLocale() != null) {
addConstraint(languageSearchConstraints, "or",
"@jcr:language = "
+ stringToJCRSearchExp(session.getLocale()