Map<Attribute, Node> returnValue = new HashMap<Attribute, Node>(1);
final Map<AttributeName, PositionalNodeType> namePosMap = collector.getAttributes();
if (attributeName == null) {
returnValue.put(NULLARY_ATTRIBUTE, value);
} else {
NodeType type = namePosMap.get(attributeName);
type = (type == null) ? new ObjectNodeType() : type;
Attribute attribute = new AttributeImpl(attributeName, type);
returnValue.put(attribute, value);
collector.addConstraints(returnValue);
}