for (Node child : children)
{
if (child != null)
{
if ((addon.getApiVersion() == null)
|| Versions.areEqual(new SingleVersion(child.getAttribute(ATTR_API_VERSION)),
addon.getApiVersion()))
{
if ((addon.getVersion() == null)
|| Versions.areEqual(new SingleVersion(child.getAttribute(ATTR_VERSION)),
addon.getVersion()))
{
return AddonId.from(child.getAttribute(ATTR_NAME),
child.getAttribute(ATTR_VERSION),
child.getAttribute(ATTR_API_VERSION));