Inline the PID placeholder and alternative replacement.

Also, add in "hierarchy.xslt" template and commented-out invocation.

Took the spirit of https://github.com/discoverygarden/basic-solr-config/pull/50, but calling out to Java instead of using the recursive string replacement.