added sonar exclusions
changed modifier to private and added getter for the field