the husband of that particular grandmother had taken advantage of his influence with the king to have several unusual codicils attached to havenhurst 's entailment-codicils to ensure that it would belong to his wife and their successors for as long as they wished to keep it , be those successors male or female .