A Beit Din found a halakhic solution for a man who discovered he was a cohen after having married a divorcee and having six children with her.