public void bind(final String name, final Object object) throws NamingException {
        LOGGER.debug("Binding JNDI object with name '{}'", name);
        execute(new JndiCallback() {
            public Object doInContext(Context ctx) throws NamingException {
                ctx.bind(name, object);
                return null;
            }
        });
    }
Bind the given object to the current JNDI context, using the given name.

@param name   the JNDI name of the object
@param object the object to bind
@throws NamingException thrown by JNDI, mostly name already bound
core/src/main/java/org/apache/shiro/jndi/JndiTemplate.java