Adding java class for running DSL scripts.
Updated docs for java example.