Sure, if you look at Master, you'll see we've switched to using the puppetlabs/java module, to deal w/ the finicky bits of Java for all the OS's.  Their module is pretty much a big set of case statements for OS's, but is more inclusive than ours ever was.  It was also an attempt at making sure we didn't have to maintain this :)