code: public void unbind() throws Throwable
     {
        if (name == null)
           throw new IllegalArgumentException("Name is null");
  
        if (trace)
           log.trace("Unbinding " + name);
  
        Context context = null;
        try
        {
           Properties properties = new Properties();
           properties.setProperty(Context.PROVIDER_URL, jndiProtocol + "://" + jndiHost + ":" + jndiPort);
           context = new InitialContext(properties);
  
  
           Util.unbind(context, name);
  
           objs.remove(name);
  
           if (log.isDebugEnabled())
              log.debug("Unbound " + name);
        }
        catch (Throwable t)
        {
           log.exceptionDuringUnbind(t);
        }
        finally
        {
           if (context != null)
           {
              try
              {
                 context.close();
              }
              catch (NamingException ne)
              {
                 // Ignore
              }
           }
        }
     }
docs: Unbind
  @exception Throwable Thrown in case of an error