/** * If not already created, a new <code>native-artifact</code> element will be created and returned. * Otherwise, the first existing <code>native-artifact</code> element will be returned. * @return the instance defined for the element <code>native-artifact</code> */ public ArtifactType<ResourcesType<T>> getOrCreateNativeArtifact() { List<Node> nodeList = childNode.get("native-artifact"); if (nodeList != null && nodeList.size() > 0) { return new ArtifactTypeImpl<ResourcesType<T>>(this, "native-artifact", childNode, nodeList.get(0)); } return createNativeArtifact(); }