Added code from goobi 1.8 for method executeMudule()
Merge pull request #162 from frank-ulrich-weber/issue_31

Added code from goobi 1.8 for method executeModule()