String response = vAccountsRequest.body();
Document doc = Jsoup.parse(response);
Element el = doc.getElementById("summaryImageHeaderRow");
if (el != null) {
Account account = new Account();
account.setName(el.getElementById("headerSectionLeft").select("span.cardTitle a").text());
account.setAccountType(AccountType.LIABILITY);
Element link = el.select("div.summaryTitles a").first();
account.setAccountNumber(link.text());
account.setCurrency(Currency.getInstance("SEK"));
account.setId(parseAccountId(link));
String balance = doc.getElementById("colOSBalance").select("div.summaryValues").text();
balance = balance.replaceAll("[^\\d-,]", "").replace(",", ".");
account.setBalance(new BigDecimal(balance));
account.setAvailable(account.getBalance());
vAccounts.add(account);
}
return vAccounts;
}