Fixing sonar issues on ConfigurationServiceImpl.java