@Override
    public IntegerUserMap marshal(Map<Integer, User> v) throws Exception {
        IntegerUserMap integerUserMap = new IntegerUserMap();

        Iterator<Map.Entry<Integer, User>> iterator = v.entrySet().iterator();

        while (iterator.hasNext()) {
            Map.Entry<Integer, User> entry = iterator.next();
            IntegerUserEntry integerUserEntry = new IntegerUserEntry();
            integerUserEntry.setId(entry.getKey());
            integerUserEntry.setUser(entry.getValue());
            integerUserMap.getEntries().add(integerUserEntry);
        }
        return integerUserMap;
    }