remove duplication of repeated JNDI lookups by using recursion through
all available JNDI names