Stub is rewritten for automatically configurable modules