Fortress fortress = getFortress();
if (fortress.getContractState() == Fortress.CONTRACT_WITH_CASTLE)
{
html.setFile("residence2/fortress/fortress_steward022.htm");
html.replace("%castle_name%", HtmlUtils.htmlResidenceName(getFortress().getCastleId()));
html.replaceNpcString("%contract%", NpcString.CONTRACT_STATE);
long leftTime = (REWARD_CYCLE - (3600 - fortress.getCycleDelay()) - (fortress.getPaidCycle() * 3600)) / 60;
html.replace("%rent_cost%", String.valueOf(Fortress.CASTLE_FEE));
html.replace("%next_hour%", String.valueOf(leftTime / 60));
html.replace("%next_min%", String.valueOf(leftTime % 60));
}