protected B2BSelectionData populateDisplayNamesForRoles(final B2BSelectionData b2BSelectionData) { final List<String> roles = b2BSelectionData.getRoles(); final List<String> displayRoles = new ArrayList<String>(roles.size()); for (final String role : roles) { displayRoles.add( getMessageSource() .getMessage( "b2busergroup." + role + ".name", null, role, getI18nService().getCurrentLocale())); } b2BSelectionData.setDisplayRoles(displayRoles); return b2BSelectionData; }