Update DefaultTopologyValidator.java

Adding prepare