@Override
	public boolean getItemCanBeDeleted(String itemId) {
		System.out.println("Hello from getAuctionExpired");
		boolean itemCanBeDeleted = true;
		TypedQuery<Auction> auctionExpiredQuery = emgr.createNamedQuery(
				"Auction.findExpiredByItem", Auction.class);
		auctionExpiredQuery.setParameter("itemId", Integer.valueOf(itemId));
		
		List<Auction> obtainedRecords = (List<Auction>) auctionExpiredQuery.getResultList();
		
		System.out.println("obtainedRecords size = " + obtainedRecords.size());
		for (int i = 0; i < obtainedRecords.size(); i++) {
			short tempExpiration = obtainedRecords.get(i).getAuctionExpired();
			System.out.println("Test 1 - tempExpiration " + tempExpiration);
			
			if (tempExpiration == 0) {
				itemCanBeDeleted = false;
				System.out.println("Auction still ongoing.");
				break;
			}
		}
		
		return itemCanBeDeleted;
	}