user.setAliases(aliases);
if (aliases != null) { user.copyAliases(aliases); }
    void setUserProperties(User user, Attributes attrs) throws NamingException {        // in most cases userName is already set - this code is here to support retrieving user        // previe        String userName = user.getUserName();        if (StringUtils.isBlank(userName)) {            user.setUserName(getUserName(attrs));        }        setProperty(user, attrs, Index.FIRST_NAME);        setProperty(user, attrs, Index.LAST_NAME);        setProperty(user, attrs, Index.SIP_PASSWORD);        Set<String> aliases = getValues(attrs, Index.ALIAS);        user.setAliases(aliases);    }