final String claimedHouse = player.getQuest(questSlot);
try {
final int id = Integer.parseInt(claimedHouse);
final HousePortal portal = HouseUtilities.getHousePortal(id);
final int refund = (cost * depreciationPercentage) / 100 - houseTax.getTaxDebt(portal);
final StackableItem money = (StackableItem) SingletonRepository.getEntityManager().getItem("money");
money.setQuantity(refund);
player.equipOrPutOnGround(money);
portal.changeLock();
portal.setOwner("");
// the player has sold the house. clear the slot
player.removeQuest(questSlot);
raiser.say("Thanks, here is your " + Integer.toString(refund)
+ " money owed, from the house value, minus any owed taxes. Now that you don't own a house "
+ "you would be free to buy another if you want to.");