m.addAttribute(MailService.A_ID, ds.getId());
    public static Element encodeDataSource(Element parent, MailItemDataSource ds) {        Element m = parent.addElement(MailService.E_DS_POP3);        m.addAttribute(MailService.A_NAME, ds.getName());        m.addAttribute(MailService.A_FOLDER, ds.getFolderId());        m.addAttribute(MailService.A_DS_IS_ENABLED, ds.isEnabled());        m.addAttribute(MailService.A_DS_HOST, ds.getHost());        m.addAttribute(MailService.A_DS_PORT, ds.getPort());        m.addAttribute(MailService.A_DS_USERNAME, ds.getUsername());        return m;    }