@Override
	public void editElection(User user, String electionID,
			Date openNominations, Date start, Date end,
			String electoratelectionID) {
		DnDElection el = (DnDElection) electionMap.get(electionID);
		if (el.getElectionState() == ElectionState.NOT_STARTED
				&& el.getManagerSet().contains(user)) {
			el.setStartDate(start);
			el.setEndDate(end);
			el.setElectoratelectionID(electoratelectionID);
			if (el.getType() == DnDElectionType.REFERENDUM)
				el.setOpenNominationsDate(start);
			else if (openNominations == null)
				throw new RuntimeException("You haven't specified an Open Nominations" +
						" Date for the election. This is legal only in Referendums");
			else
				el.setOpenNominationsDate(openNominations);
		} else
			throw new RuntimeException(
					"Illegal action. Either election has started or current user is not an Election Manager");
	}