Just create a new local? `result.build.getHeaders()` might be sufficient.