I'll update the comments to make it clearer.

This is done for unit test through h2 db.  In the unit tests using h2 db, the rptDirect will throw an exception as h2 database might not have some of the sql functions available in mysql, then the exception is caught but does not need to be logged as it's not really an error.  The following on code will then use amberdb graph layer to retrieve 
the data required for report.