Added a function to retrieve the iohandler of a given profile object