Cleanup the getApplications code
Cleanup the getApplications code

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

silenceli/oga-windows,oVirt/ovirt-guest-agent,oVirt/ovirt-guest-agent,oVirt/ovirt-guest-agent,silenceli/oga-windows,silenceli/oga-windows,oVirt/ovirt-guest-agent,silenceli/oga-windows