Unfortunately I don't have the time at the moment to write a full howto, but essentially you need to "repackage" cxoffice so that it uses everything from inside the cmg instead of ~/.cxoffice and /opt

Greetings,
probono