@Override
  public void processPacket(Stanza packet) {
    super.processPacket(packet);

    // we are done here
    endKeyPairImport();
  }
  public void run()
      throws CertificateException, SignatureException, PGPException, IOException,
          NoSuchProviderException {
    super.run();

    try {
      mImporter.load();
      mKeyRing = mImporter.createKeyPairRing();
    } finally {
      try {
        mImporter.close();
      } catch (Exception e) {
        // ignored
      }
    }

    // if we are here, it means personal key is likely valid
    // proceed to send the public key to the server for approval

    // listen for connection events
    setupConnectedReceiver();
    // request connection status
    MessageCenterService.requestConnectionStatus(getContext());

    // CONNECTED listener will do the rest
  }
 public void abort() {
   super.abort();
 }