private Set buildSet(String attrName,Map attributes,Set resultSet){
  Set vals=(Set)attributes.get(attrName);
  if ((vals != null) && !vals.isEmpty()) {
    resultSet.addAll(vals);
  }
  return (resultSet);
}

private Set buildSet ( String attrName , Map attributes , Set resultSet ) { Set vals = ( Set ) attributes . get ( attrName ) ; if ( ( vals != null ) && ! vals . isEmpty ( ) ) { resultSet . addAll ( vals ) ; } return ( resultSet ) ; }
builds and returns the appropriate set for the attributes to be merged from org and realm if the system is in intrusive mode ( both org dit and realm dit are present ) . this happens when the copy config flag is enabled .
