public User byEmail(String email) throws NoEmailException {
        if (emailMap.containsKey(email))
            try {
                return byId(emailMap.get(email));
            } catch (NoIdException e) {
                e.printStackTrace();
                return null;
            }
        else
            throw(new NoEmailException(email));
    }