@Override
public RestResponse execute(Object controller) throws Exception {
if (controller instanceof Head) {
Head head = (Head) controller;
return head.doHead();
}
// According to http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html a
// HEAD response behaves exactly the same as a GET request except that
// no content is sent.