public boolean validateCard(Card card, int pinCode) throws NoCardInserted {
		currentCard = card;
		try {
			validCard = !(currentCard.isBlocked());
			if (!validCard){
				throw new NoCardInserted();
			} else {
			validCard = currentCard.checkPin(pinCode);
			if (!validCard)
				throw new NoCardInserted();
			}
		} catch (NoCardInserted ex) {
			throw ex;
		}
		return validCard;
	}