private String getSubElementName (String name) { int pos = name.indexOf("-"); if (pos == -1) { pos = name.indexOf(":"); } if (pos > -1){ return name.substring(pos + 1); } return null; }