class LocalGroupConverter {

    public LocalGroup convert(LocalGroupType localGroupType) {
        LocalGroup group = new LocalGroup();

        group.setId(String.valueOf(localGroupType.getId()));
        group.setCode(localGroupType.getGroupCode());
        group.setDescription(localGroupType.getDescription());
        group.setUpdatedAt(FormatUtils.fromDateToOffsetDateTime(localGroupType.getUpdated()));
        group.setMemberCount(localGroupType.getGroupMember().size());
        group.setMembers(localGroupType.getGroupMember().stream().map(this::convert).collect(Collectors.toList()));

        return group;
    }

    @Autowired public  LocalGroupConverter(ClientConverter clientConverter, GlobalConfFacade globalConfFacade);

}