SSP-1669 Harmonize LDAP/JDBC wildcarding logic trees. Add comments. Expect this to be refactored