Added unneccessary String casts that seem to be necessary in Java 7 setups.

See also r1541424


git-svn-id: https://svn.apache.org/repos/asf/karaf/branches/karaf-2.x@1544450 13f79535-47bb-0310-9956-ffa450edef68