Modified createDocument method, now notify events IObjectInitializedEvent