fixed some findbugs issues


Change-Id: I1f61e9c48dab9c5719c4389619e201ba0bdcb11c
Signed-off-by: Alexander Wert <alexander.wert@sap.com>
fixed a bug. Checking for availability of the c-agent before activating
it

Change-Id: Ie1362dc5c92386c5d5f7b1dd82231a22db60f86f
Signed-off-by: Alexander Wert <alexander.wert@sap.com>
Merge pull request #31 from AlexanderWert/master

fixed a bug with c-agent