Cleanup the getApplications code

Change-Id: Iceb493bb6b6703e426606febb0cdbce9a8890953
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>