function(outer,attrName,attrValue){
if (outer === undefined || !('children' in outer)){
return undefined;
} else {
return _.find(outer.children,function(child){ return 'attributes' in child && attrName in child.attributes && child.attributes[attrName] == attrValue; });
}
}