Which court has jurisdiction to hear a writ petition for compensation?