Adding getAllApplications method