Mediator mapping, and automating IoC application layer