public Result execute(Command command) {

        Set<AccountDTO> accountDTOgetsend = (Set<AccountDTO>) command.getCommandSource();
        Set<MessageStatuss> messageStatusssend = new HashSet<MessageStatuss>();
        List<Account> accountIdsend = new ArrayList<Account>();
        for (Iterator<AccountDTO> it = accountDTOgetsend.iterator(); it.hasNext();) {
            accountIdsend.add(accountDAO.getAccount(it.next().getId()));

        }
        messageStatusssend.addAll(messageStatusDAO.getMessageStatussSendByAccount(accountIdsend));
        List<MessageStatussDTO> messageStatussDTOsSend = new ArrayList<MessageStatussDTO>();
        for (Iterator<MessageStatuss> it = messageStatusssend.iterator(); it.hasNext();) {
            MessageStatuss ms = it.next();
            messageStatussDTOsSend.add(ms.toMessageStatusDTO());
        }
        result.setResult(messageStatussDTOsSend);

        return result;
    }