[LIB-250] Provide factory method create(configClass) in LdapGenericConfigExtension and PreferencesGenericConfigExtension