@Override
 public void readExternal(Element element) throws InvalidDataException {
   if (element == null) {
     throw new InvalidDataException("Cant read " + this + ": element is null.");
   }
   XmlSerializer.deserializeInto(myState, (Element) element.getChildren().get(0));
   {
     Element fieldElement = element.getChild("myJUnitSettings");
     if (fieldElement != null) {
       myJUnitSettings.readExternal(fieldElement);
     } else {
       if (log.isDebugEnabled()) {
         log.debug(
             "Element " + "myJUnitSettings" + " in " + this.getClass().getName() + " was null.");
       }
     }
   }
   {
     Element fieldElement = element.getChild("myJavaRunParameters");
     if (fieldElement != null) {
       myJavaRunParameters.readExternal(fieldElement);
     } else {
       if (log.isDebugEnabled()) {
         log.debug(
             "Element "
                 + "myJavaRunParameters"
                 + " in "
                 + this.getClass().getName()
                 + " was null.");
       }
     }
   }
 }
 @Override
 public void writeExternal(Element element) throws WriteExternalException {
   element.addContent(XmlSerializer.serialize(myState));
   {
     Element fieldElement = new Element("myJUnitSettings");
     myJUnitSettings.writeExternal(fieldElement);
     element.addContent(fieldElement);
   }
   {
     Element fieldElement = new Element("myJavaRunParameters");
     myJavaRunParameters.writeExternal(fieldElement);
     element.addContent(fieldElement);
   }
 }
 @Override
 public JUnitTests_Configuration clone() {
   JUnitTests_Configuration clone = null;
   try {
     clone = createCloneTemplate();
     clone.myState = (JUnitTests_Configuration.MyState) myState.clone();
     clone.myJUnitSettings = (JUnitSettings_Configuration) myJUnitSettings.clone();
     clone.myJavaRunParameters = (JavaRunParameters_Configuration) myJavaRunParameters.clone();
     return clone;
   } catch (CloneNotSupportedException ex) {
     if (log.isErrorEnabled()) {
       log.error("", ex);
     }
   }
   return clone;
 }
 public SettingsEditorEx<? extends IPersistentConfiguration> getEditor() {
   return new JUnitTests_Configuration_Editor(
       myJUnitSettings.getEditor(), myJavaRunParameters.getEditor());
 }