/**
   * This method writes this <code>ServicesRemovalStatus</code> object to the specified output
   * stream object.
   *
   * @param out DataOutput object
   * @param versionNo
   * @exception IOException thrown in case of error while writing data.
   * @since Tifosi2.0
   */
  public void toStream(DataOutput out, int versionNo) throws IOException {
    out.writeInt(m_hashServiceRemovalStatus.size());

    Enumeration keys = m_hashServiceRemovalStatus.keys();

    while (keys.hasMoreElements()) {
      String key = (String) keys.nextElement();
      ServiceRemovalInfo val = (ServiceRemovalInfo) m_hashServiceRemovalStatus.get(key);

      writeUTF(out, key);
      val.toStream(out, versionNo);
    }
  }