/**
* @return the {@link XmlObjectInfo} with the given name, may be <code>null</code>.
*/
public static XmlObjectInfo getObject(XmlObjectInfo root, final String name) {
final XmlObjectInfo result[] = {null};
root.accept(new ObjectInfoVisitor() {
@Override
public void endVisit(ObjectInfo object) throws Exception {
if (object instanceof XmlObjectInfo) {
XmlObjectInfo xmlObject = (XmlObjectInfo) object;
if (ObjectUtils.equals(getName(xmlObject), name)) {