Merge pull request #107 from raghavgautam/master

Pretty print entity xml and ProcessInstanceColoMixedTest cleanup
Adding defensive checks.
more informative logging
rethrowing the exception