Added logic to handle expired VApp Templates