class DaysByteXmlAdapter extends XmlAdapter<ClientDaysSortedSetWrapper, SortedSet<Byte>> {

    @Override
    public ClientDaysSortedSetWrapper marshal(SortedSet<Byte> v) throws Exception {
        ClientDaysSortedSetWrapper result = null;
        if(v != null && !v.isEmpty()){
            SortedSet<String> strings = new TreeSet<String>();
            for(Byte value : v)
                strings.add(value.toString());
            result = new ClientDaysSortedSetWrapper(strings);
        }
        return result;
    }

}