Upgraded Java logic to ST4. Fixed CustomResultSetExtractor template as an example. refs #413