public void setEmail(String email) {
		List<Account> accounts = getAccounts();
		Account newAccount = null;
		if (accounts!=null) 
			for (Account account : accounts) {
				if (mailto.equals(account.getService()))  {
					account.setAccountName(email);
					newAccount = account;
					break;
				}
			}
		else { 
			newAccount = new Account(); 
			newAccount.setAccountName(email);newAccount.setService(mailto);
			addAccount(newAccount);
		}
		if (newAccount!=null)
		try {
			newAccount.setResourceURL(new URL(String.format("%s:%s", mailto,email)));
		} catch (Exception x) { x.printStackTrace();
			newAccount.setResourceURL(null); 
		}		

	}