this code sample were taken fromhttp:
specialpurpose/googlecheckout/svn.apache.org/viewvc?view=revision&revision=584440
see https://cwiki.apache.org/confluence/display/OFBIZ/Google+Checkout+Integration
it has since been removed from the svn.
I like chris's work because /script/org/ofbiz/googleCheckout/PrepareXMLTemplate.xml
it is a good example of how to extend simple-methods using java scripting (BSH).
though dated this is a source also http://ofbiz.apache.org/docs/minilang.html#MethodExample
...