A smart way to get application scope bean.