Divided some codes to INTER-Mediator-Context.js