Changed getApplications to return list of application