public static long removeAddress(Address address, long sessionID) throws SessionException {
        if (sessionID <= NO_SESSION_ID) {
            throw new SessionException("A valid session ID is required to remove 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 removing an address",
                    SessionException.CONTACT_SELECT_REQUIRED);
        }
        if (addresses.indexOf(address) == -1) {
            throw new SessionException("There is no record of this address", SessionException.ADDRESS_DOES_NOT_EXIST);
        }
        contact.removeAddress(address);
        return sessionID;
    }