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] Useless parentheses around expressions should be removed
to prevent any misunderstanding (Remove those useless parentheses)
Format per coding standard
Add javadoc.
Add throws exception to #next
Add javadoc
Refactor parameter name for descriptiveness