Fixed sonar violations in BasePdfBuilderStrategy.