Delegated application logic into ApplicationContext