Mazz, The factory method returns a new TemplateEngine populated
with
values that are read out of the SystemInfo object.
My concern here is that, what if SIGAR is disabled and that
createSystemInfo returns an implementation of JavaSystemInfo - some of
the getters from that implementation will throw a
UnsupportedOperationException.
If your code takes that into account when calling the SystemInfo
getters, then it sounds OK.
BTW: you can test this by doing a "native -d" from the agent prompt
command and get your code to call that getTemplateEngine API. Make sure
that returns OK in that use-case.