Added code from goobi 1.8 for method executeMudule()