code: @Override
  	protected void openConnectionInternal() throws ConnectionException, AuthenticationException {
  		if (checkoutDirectory == null) {
  			checkoutDirectory = createCheckoutDirectory();
  		}
  
  		if (checkoutDirectory.exists() && safeCheckout) {
  			removeCheckoutDirectory();
  		}
  
  		checkoutDirectory.mkdirs();
  	}
docs: /* (non-Javadoc)
  @see org.apache.maven.wagon.AbstractWagon#openConnectionInternal()