SWITCHYARD-1904 Fix findbugs issues and provide exceptions

Fix findbugs issues and provide exceptions to issues which need further review.