code: @Unbind
      public void unbindFactory(Factory factory) {
          try {
              lock.lock();
              InstanceDeclaration declaration = getDeclarationByFactory(factory);
              if (declaration != null) {
                  LOGGER.info("Disposing instance created by");
                  declaration.dispose();
                  declarations.remove(declaration);
              }
          } finally {
              lock.unlock();
          }
      }
docs: Unbinds a factory.
  
  @param factory the factory