@Override
	public Map<String, Object> getBidOfAuction(String auctionId) {
		Map<String, Object> bidMap = new HashMap<String, Object>();
		TypedQuery<Bid> bidQuery = emgr.createNamedQuery("Bid.findBidByAuction", Bid.class);
		bidQuery.setParameter("auctionId", Integer.parseInt(auctionId));
		try {
			Bid bid = bidQuery.getSingleResult();
			int consequence = bid.getBidConsequence();
			bidMap.put("consequence", consequence);
			double currentHighest = bid.getCurrentHighest();
			bidMap.put("currentHighest", currentHighest);
			String usernameOfBidder = bid.getUserName();
			bidMap.put("usernameOfBidder", usernameOfBidder);
		} catch (NoResultException e) {
			System.out.println("getBidOfAuction - No result for the bid of auction:" + auctionId + "Catched NoResultException - " + e.getMessage());
		}
		
		return bidMap;
	}