Element response = invoke(req); Element accountEl = response.getElement(AdminService.E_ACCOUNT); String aName = accountEl.getAttribute(AdminService.A_NAME); String aId = accountEl.getAttribute(AdminService.A_ID); Map<String, Object> aAttrs = getAttrs(accountEl); return new SoapAccount(aName, aId, aAttrs);
return new SoapAccount(invoke(req).getElement(AdminService.E_ACCOUNT));
    public Account createAccount(String emailAddress, String password, Map<String, Object> attrs)         throws ServiceException     {        XMLElement req = new XMLElement(AdminService.CREATE_ACCOUNT_REQUEST);        req.addElement(AdminService.E_NAME).setText(emailAddress);        req.addElement(AdminService.E_PASSWORD).setText(password);        addAttrElements(req, attrs);        Element response = invoke(req);        Element accountEl = response.getElement(AdminService.E_ACCOUNT);        String aName = accountEl.getAttribute(AdminService.A_NAME);        String aId = accountEl.getAttribute(AdminService.A_ID);        Map<String, Object> aAttrs = getAttrs(accountEl);        return new SoapAccount(aName, aId, aAttrs);    }