* In case of a singular an instance of the XMLDCElement if the child
* object exist, if the child object doesn't exist <code>null</code>.
*/
protected XMLDCAccessorTarget resolveAccessor(final Accessor accessor) {
if (accessor.target == null) {
AccessorDefinition accessorDef = accessor.def;
if (accessorDef.isCollection()) { // accessor is a collection
accessor.target = new XMLDCCollection(dc, accessorDef, element);
} else { // accessor to a singular object
Node childNode =
Utils.findFirstChildElement(element, accessor.getXmlNamespaceUri(), accessor.getXmlName());
if (childNode != null) {
accessor.target = new XMLDCElement(dc, accessorDef.getStructure(), (Element) childNode);
} else {
accessor.target = XMLDCElement.Accessor.NOT_FOUND;
}
}
}