Add print-out statement in the try/catch to pass PMD check