probeE.setAttribute(ID,pr.getID(),ns);
probeE.addContent(new Element(NAME,ns).addContent(pr.getName()));
probeE.addContent(new Element(TYPE,ns).addContent(String.valueOf(pr.getType())));
ProbeGroup group = (ProbeGroup) DesignUtils.getGroupWithType(pr,ProbeGroup.GROUP_TYPE);
if (group != null) {
String groupStr = group.getID();
Element groupE = new Element(PROBE_GROUP,ns).setAttribute(ID,groupStr,ns);
Group<?> tGroup = group.getTargetGroup();
if (tGroup!=null) {
String tGroupStr = tGroup.getID();
groupE.setAttribute(TARGET_GROUP,tGroupStr,ns);
}
probeE.addContent(groupE);