[Ant Java task](http://ant.apache.org/manual/Tasks/java.html) provides `fork` parameter, which, by definition *"if enabled triggers the class execution in another VM"*. As we are dealing with a large amount of data, setting this parameter saved us from running out of Java heap space.  

We want to be able to do the same through a Java class. What would be the best way to achieve the functionality as provided by `fork`?