Adding method to get application mode
Fixing syntax error in collection service provider