@Override
public void addResponseHeader(String name, String value) {
if (portletResponse instanceof ResourceResponse) {
ResourceResponse resourceResponse = (ResourceResponse) portletResponse;
resourceResponse.addProperty(name, value);
}
else {
logger.warn("Unable to call {0} for portletResponse=[{1}] because it is not a ResourceResponse.",
"portletResponse.addProperty(String, String)", portletResponse.getClass().getName());
}