Fixing JNDI lookup of non-String entries

Casting fails for any entry type other then String.
Should be able to look up Boolean, for example.