private boolean htaccessGranted( URI requestURI,
				     HTTPHeaders headers,
				     HypertextAccessFile htaccess,
				     File directory, 
				     Map<String,BasicType> additionalSettings,
				     Map<String,BasicType> optionalReturnSettings,
				     Environment<String,BasicType> session ) 
	throws IOException,
	       AuthorizationException,
	       ConfigurationException {

	
	// Does the .htaccess have an AuthType directive at all?
	// (there are also .htaccess file for basic configuration purposes)
	if( htaccess.getAuthType() == null )
	    return true;


	BasicType authMethod = additionalSettings.get( Constants.KEY_AUTHORIZATION_METHOD );
	if( authMethod == null ) { // || authUser == null || authPass == null ) 


	    return false; // No authorization credentials passed (at least one missing)

	}

	    
       
	try {
	    return this.hypertextAccessHandler.accessGranted( requestURI,
							      headers,
							      htaccess,
							      authMethod.getString(),   // Wrapper cannot be null here
							      additionalSettings,
							      optionalReturnSettings
							      );
	} catch( MissingParamException e ) {

	    // The client did not send all essential credentials.
	    throw new AuthorizationException( AuthorizationException.MISSING_PARAM, e.getMessage() );

	}


    }