Added unwrap method to QueryExecutionFactory