my.getAliases().clear(); my.addAliases(api.getAliases());
my.copyAliases(Arrays.asList(api.getAliases()));
    public void toMyObject(Object myObject, Object apiObject, Set properties) {        super.toMyObject(myObject, apiObject, properties);        org.sipfoundry.sipxconfig.common.User my = (org.sipfoundry.sipxconfig.common.User) myObject;        User api = (User) apiObject;        if (properties.contains(ALIASES_PROP) && api.getAliases() != null) {            my.getAliases().clear();            my.addAliases(api.getAliases());        }    }