Fix [SonarQube] Loose Coupling (Avoid using implementation types like
'HashMap'; use the interface instead)