Lots "on top of java" languages simplify scripting activities by including open source libraries (xml) and then putting syntatic sugar around them to make things simpler - so that 1 or two lines do what might take several lines of code.
 
I wonder if theres a way to pull functionality like this into beanshell without committing beanshell to wierd non-java syntax.  I'm NOT recommending operator overloading, but the idea that you can take a bit of syntax (e.g., "X + Y") and define what it does (e.g., "if the left side is some kind of collection, add the right side to it as a new element") is sort of nifty.  Hmm...  Just like you can make your own commands you could make your own syntax elements.
 
Gary
 
Gary Furash, MBA, PMP, Applications Manager
Maricopa County Attorney's Office