docs: public static BasicAuthorizationDetectionMethod loadMethodFromSession(Session session, int contextId)
  			throws DatabaseException {
  
  		int statusCode = NO_STATUS_CODE;
  		try {
  			List<String> statusCodeL = session.getContextDataStrings(contextId,
  					RecordContext.TYPE_AUTHORIZATION_METHOD_FIELD_1);
  			statusCode = Integer.parseInt(statusCodeL.get(0));
  		} catch (NullPointerException | IndexOutOfBoundsException | NumberFormatException ex) {
  			// There was no valid data so use the defaults
  		}
  
  		String headerRegex = null;
  		try {
  			List<String> loadedData = session.getContextDataStrings(contextId,
  					RecordContext.TYPE_AUTHORIZATION_METHOD_FIELD_2);
  			headerRegex = loadedData.get(0);
  		} catch (NullPointerException | IndexOutOfBoundsException ex) {
  			// There was no valid data so use the defaults
  		}
  
  		String bodyRegex = null;
  		try {
  			List<String> loadedData = session.getContextDataStrings(contextId,
  					RecordContext.TYPE_AUTHORIZATION_METHOD_FIELD_3);
  			bodyRegex = loadedData.get(0);
  		} catch (NullPointerException | IndexOutOfBoundsException ex) {
  			// There was no valid data so use the defaults
  		}
  
  		LogicalOperator operator = LogicalOperator.OR;
  		try {
  			List<String> loadedData = session.getContextDataStrings(contextId,
  					RecordContext.TYPE_AUTHORIZATION_METHOD_FIELD_4);
  			operator = LogicalOperator.valueOf(loadedData.get(0));
  		} catch (NullPointerException | IndexOutOfBoundsException | IllegalArgumentException ex) {
  			// There was no valid data so use the defaults
  		}
  
  		return new BasicAuthorizationDetectionMethod(statusCode, headerRegex, bodyRegex, operator);
  	}