A bunch of little hacks to get JBoss 5.x installed and running.  The original script assumed the file was delivered as a tarball.  JBoss 5.x is not.  So, I flipped the evil the other way, now the code assumes a zip file.  I also introduced a new init.d template for JBoss 5, since the existing one was very AS 7 oriented.  Currently, JBoss is not starting -- not sure why.  Overall, this is a pretty non-cohesive set of hacks that simply get the job done.  No elegance whatsoever.  That is for another time.