I'm not an expert in German law, but the Self Determination law looks reasonable, I browsed the Wikipedia article about it. The law has special cases for military service and incarceration where an individual declares a change. I think that is okay on case by case basis. Maybe?