fixes Sonar issue about "May expose internal representation by returning reference to mutable object".
Fixes Sonar issue about "Hide Utility Class Constructor".