Won't this fail.  Don't you have to execute the setHttpOnlyMethod object?