Is there a way to get template names/identifers on the ledger via java APIs

I applied ledger metaprogramming e.g. for easing the pains of migration via codegen.