fix eclipse warnings - close resources / type generics cleanup sources - add parenthesis to statements