if (attrs != null) {
Node valueAttr = attrs.getNamedItem(ATTR_VALUE);
if (valueAttr != null) {
Platform platform = new Platform(valueAttr.getNodeValue());
NodeList childNodes = platformNode.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Target target = processTargetNode(childNodes.item(i));
if (target != null) {
platform.addTarget(target);
}
}
return platform;
}