improvements in simple jndi for distinguish connections and general java
objects