Sonar: System.out and System.err should not be used as loggers.
Removed unused imports.