Add an excerpt on how to get the application instance

Added where to find the app instance when attribute value is specified and how to use it in a controller.