public Accounts newAccounts(Collection<Account> accs, Collection<Overlaps> ovlps) { Accounts res=of.createAccounts(); if (accs!=null) { res.getAccount().addAll(accs); } if (ovlps!=null) { res.getOverlaps().addAll(ovlps); } return res; }
public Account addAccount(String name, Account account) { Account existing=accountMap.get(name); if (existing!=null) { return existing; } else { accountMap.put(name,account); Accounts accounts=getAccounts(); if (accounts==null) { accounts=of.createAccounts(); setAccounts(accounts); } accounts.getAccount().add(account); return account; } } public Account addAccount(Account account) {
res.setId(autoGenerateId(opmGraphIdPrefix,id)); if (accs!=null) { Accounts aaccs=of.createAccounts(); aaccs.getAccount().addAll(accs); if (ops!=null)