Fix warnings on javadoc in build and Eclipse-detected warnings on casts and imports.
Isolate state of global context changes for TestService (just in case).

git-svn-id: https://svn.apache.org/repos/asf/jena/trunk@1462854 13f79535-47bb-0310-9956-ffa450edef68