}
}
// Populate the person object using the PersonDirectory if applicable
if (PropertiesManager.getPropertyAsBoolean("org.jasig.portal.services.Authentication.usePersonDirectory")) {
// Retrieve all of the attributes associated with the person logging in
IPersonAttributeDao pa = PersonDirectory.getPersonAttributeDao();
Map attribs = pa.getUserAttributes((String)person.getAttribute(IPerson.USERNAME));
if (attribs != null) {
// attribs may be null. IPersonAttributeDao returns null when it does not recognize a user at all, as
// distinguished from returning an empty Map of attributes when it recognizes a user has having no
// attributes.