Accessing daml template data from .dalf files in .dar file and using them in Java

As usual, I encourage use of the interface library a little more strongly, for some reasons. It sounds like you’re on the right path, anyhow. Just keep in mind that you must develop a deeper understanding of the LF spec in order to use the java-proto directly, correctly; the protobuf definitions do not enforce all necessary rules.