Export .FXP using LUA

Hi,

can I export an .fxp using LUA API? The active_preset_data contains a “parameter bag”, but I doubt I will be able to reconstruct a fxp from that…