moven AppContext to handler and created DomainDrivenConfig