Court itself should pass the verdict to build a public interest thing instead of Temple or Mosque. For that if necessary the H'ble court should direct the government to aquire the land and build a hospital or school or college. Or even govt. can start a Military training college also