public void rebind(Name name, Object object) throws NamingException {
    try {
      unbind(name);
    } catch (NamingException ignore) {
      // rebind may fail if there is no existing binding
    }

    bind(name, object);
  }
 public void bind(final Name name, final Object object, final Class<?> bindType)
     throws NamingException {
   bind(name, object);
 }