Sonar improvements: make url private, use String.indexOf(char), remove
parameter assignment
set class visibility to package
No need to check for null before an instanceof
improve ternary readability
set visibility of initPatterns to private; called from constructor
rename conflicting method variable
small improvements from Sonar
remove throw of HierarchyFactoryException is unchecked, add a javadoc
@throws
Small Sonar improvements; simplify boolean expr, static ordering