Well, I found the solution:
You can add Functional Module Codes with a Bridge In Plugin (Bridge Processor) using the x2ml API.
Instead of writing connector.setModule("FM1"); you have to write
connector.addModuleReference(new ReferedModuleCode("FM1", null));
You can also use both methods but you need at least the "addModuleReference" method
Tried, it works