//org.dom4j.Node attribute = document.selectSingleNode("//DATA-ACCESS/ATTRIBUTE");
List<Node> attributes = document.selectNodes("//DATA-ACCESS/ATTRIBUTE");
if (attributes != null) {
for (Iterator<Node> iterator = attributes.iterator(); iterator.hasNext();) {
Node attribute = iterator.next();
String attributeName = attribute.valueOf("@name");
if (attributeName != null) {
// if no value is found put null
String value = profile.getUserAttribute(attributeName) != null ? profile.getUserAttribute(attributeName).toString() : null;
logger.debug("add profile attribute "+attributeName+ " with value "+value);
// put attribute not with filter name but with attribute name!