An engine for building OpenHIM mediators