principalProvider = sp.getPrincipalConfiguration().getPrincipalProvider(root, NamePathMapper.DEFAULT);
}
if (principalProvider == null && callbackHandler != null) {
try {
PrincipalProviderCallback principalCallBack = new PrincipalProviderCallback();
callbackHandler.handle(new Callback[] {principalCallBack});
principalProvider = principalCallBack.getPrincipalProvider();
} catch (IOException e) {
log.debug(e.getMessage());
} catch (UnsupportedCallbackException e) {
log.debug(e.getMessage());
}