build: support differing Java SDK version; implement init.js templating.