public boolean exportMyIdentity(AbstractIdentity id,File file){
  FileOutputStream fos;
  try {
    fos=new FileOutputStream(file);
  }
 catch (  FileNotFoundException e) {
    logger.error("Could not write identity to file " + file.getAbsolutePath(),e);
    return false;
  }
  return exportMyIdentity(id,fos);
}

public boolean exportMyIdentity ( AbstractIdentity id , File file ) { FileOutputStream fos ; try { fos = new FileOutputStream ( file ) ; } catch ( FileNotFoundException e ) { logger . error ( "Could not write identity to file " + file . getAbsolutePath ( ) , e ) ; return false ; } return exportMyIdentity ( id , fos ) ; }
copies the public values ( name , firstname , email ) and keys into a contact and exports it to a vcard file
