public static long addAddress(Address address, long sessionID) throws SessionException {
        if (sessionID <= NO_SESSION_ID) {
            throw new SessionException("A valid session ID is required to add an address",
                    SessionException.SESSION_ID_REQUIRED);
        }
        Contact contact = (Contact) editContacts.get(new Long(sessionID));
        if (contact == null) {
            throw new SessionException("You must select a contact before adding an address",
                    SessionException.CONTACT_SELECT_REQUIRED);
        }
        if (addresses.indexOf(address) == -1) {
            addresses.add(address);
        }
        contact.addAddress(address);
        return sessionID;
    }