if (customHeaderButton.isSelected()) {
populateCustomHeaders(returnValue);
} else {
UserProfile p = getSelectedProfile();
p.populateHeaders(returnValue);
returnValue.setHeader(Pooka.getProperty("Pooka.userProfileProperty", "X-Pooka-UserProfile"), p.getName());
}
return returnValue;
}