public void addAccount(Account account) {
		if (account == null) return; // nothing to add
		if (accounts == null) accounts = new ArrayList<Account>();
		accounts.add(account);
		
		// make sure the account has a resource URI
		if (account.getResourceURL() == null &&
			this.getResourceURL() != null) {
			try {
				// IMPORTANT: this URI pattern is used in the roundtripping
				account.setResourceURL(
					new URL(this.getResourceURL().toString() + "/accounts/" + accounts.size())
				);
			} catch (MalformedURLException e) {
				// OK, forget it...
			}
		}
	}