if (getAttributeNames() == null) { setAttributeNames(new HashSet<>()); && !getAttributeNames().contains(getGroupRoleAttribute())) { getAttributeNames().add(getGroupRoleAttribute()); .searchForMultipleAttributeValues(getGroupSearchBase(), getGroupSearchFilter(), new String[] { userDn, username }, getAttributeNames() .toArray(new String[getAttributeNames().size()]));
if (getAttributeNames() == null) { setAttributeNames(new HashSet<>()); && !getAttributeNames().contains(getGroupRoleAttribute())) { getAttributeNames().add(getGroupRoleAttribute()); .searchForMultipleAttributeValues(getGroupSearchBase(), getGroupSearchFilter(), new String[] { userDn, username }, getAttributeNames() .toArray(new String[getAttributeNames().size()]));