code: public ConnectionSpec toConnectionSpec() {
          try {
              return getDatabaseAPI().newConnectionSpecInstance(getConnect(), getUser(), getPasswd(), false);
          } catch (InvalidConnectionSpecArguments ex) {
              throw new AssertionError(ex);
          }
      }
docs: Gets a connection spec configured with the user, password and
  connection string specified. Connections created from this connection
  spec will have auto commit turned off.
  
  @return a {@link ConnectionSpec}.