The Bean Shell plugin allows one to write custom Java code to achieve what other process tools may not.
Please see Bean Shell Programming Guide for code example.