BACKLOG-5201: Update code as getPreferredLocale takes a JCRUserNode as parameter now