Btw, any reason why you went with rhino and not nashorn.
or utilize javax.script which comes with JDK6+
you get some nice tools ootb with never jdks, see http://www.oracle.com/technetwork/articles/java/jf14-nashorn-2126515.html
but in general i like the idea.
Once Java 8 is the default, I'll certainly give jjs a shot.
Weird that you don't find more of such devops tools for JBoss.
For monitoring for example, I also had to patch collectd myself:
Isn't there any wiki or so listing such JBoss AS/EAP oriented devops tools?