Thank you peterpan!
For a real world implementation of this workaround, see this code of publiccode.eu.