@Override
	public boolean deleteLoan(Loan loan) {
		if (doc == null)
			return false;

		Element currRoot = doc.getRootElement();
		Element loans = currRoot.getChild("loans");
		List<Element> listLoans = loans.getChildren();

		for (Element currLoan : listLoans) {
			int loanID = Integer
					.parseInt(currLoan.getChild("loanID").getText());
			if (loan.getLoanID() == loanID) {
				loans.removeContent(currLoan);
				return true;
			}
		}

		return false;
	}