use helper method instead of calling factory method to get application instance