default boolean isV2Descriptor() {
    return DomUtil.hasXml(getPackage()) ||
           DomUtil.hasXml(getContent()) ||
           DomUtil.hasXml(getDependencies());
  }
default boolean isV2Descriptor()