Add logger
Fix [SonarQube] Exception handlers should provide some context and
preserve the original exception
Fix [SonarQube] if/else/for/while/do statements should always use curly
braces
Fix [SonarQube] Synchronized class StringBuffer should not be used
(Replace the synchronized class "StringBuffer" by an unsynchronized one
such as "StringBuilder")
Fix [SonarQube] Avoid commented-out lines of code (A block of
commented-out lines of code should be removed)
Fix [SonarQube] Loose Coupling (Avoid using implementation types like
'ArrayList'; use the interface instead)
Fix [SonarQube] Avoid commented-out lines of code (A block of
commented-out lines of code should be removed)