Issue #1176: Replace all printStackTrace() calls with proper logging
+ Applied codestyle