changes made by catherine: returning shared pointer instead of reference of ofxxmpp