code: public static PrincipalResolver newPersonDirectoryPrincipalResolver(
          final PrincipalFactory principalFactory, final IPersonAttributeDao attributeRepository,
          final PersonDirectoryPrincipalResolverProperties personDirectory) {
  
          return new PersonDirectoryPrincipalResolver(
              attributeRepository,
              principalFactory,
              personDirectory.isReturnNull(),
              personDirectory.getPrincipalAttribute(),
              personDirectory.isUseExistingPrincipalId(),
              personDirectory.isAttributeResolutionEnabled(),
              org.springframework.util.StringUtils.commaDelimitedListToSet(personDirectory.getActiveAttributeRepositoryIds())
          );
      }
docs: New person directory principal resolver.
  
  @param principalFactory    the principal factory
  @param attributeRepository the attribute repository
  @param personDirectory     the person directory
  @return the principal resolver