code: public boolean addItem()
      {
          try ( Session session = driver.session() )
          {
              return session.writeTransaction( new TransactionWork<Boolean>()
              {
                  @Override
                  public Boolean execute( Transaction tx )
                  {
                      tx.run( "CREATE (a:Item)" );
                      return true;
                  }
              } );
          }
          catch ( ServiceUnavailableException ex )
          {
              return false;
          }
      }
docs: tag::service-unavailable[]