code: public void store() {
          // TODO : Should we keep reference to Objects rather than recreating
          // everytime?
          try {
              XMLObjectWriter writer = XMLObjectWriter.newInstance(new FileOutputStream(persistFile.toString()));
  
              writer.setBinding(binding);
              writer.setIndentation(TAB_INDENT);
  
              writer.write(this._Timer_CircuitSwitchedCallControl_Short, TIMER_CIRCUITSWITCHEDCALLCONTROL_SHORT, Integer.class);
              writer.write(this._Timer_CircuitSwitchedCallControl_Medium, TIMER_CIRCUITSWITCHEDCALLCONTROL_MEDIUM, Integer.class);
              writer.write(this._Timer_CircuitSwitchedCallControl_Long, TIMER_CIRCUITSWITCHEDCALLCONTROL_LONG, Integer.class);
              writer.write(this._Timer_Sms_Short, TIMER_SMS_SHORT, Integer.class);
              writer.write(this._Timer_Gprs_Short, TIMER_GPRS_SHORT, Integer.class);
  
              writer.close();
          } catch (Exception e) {
              System.err.println(String.format("Error while persisting the CAP Resource state in file=%s", persistFile.toString()));
              e.printStackTrace();
          }
      }
docs: Persist