fixes Jenkins/SomarQube issue about visibility modifier/changed protected to private and added getter methods