change restful delegate to /delegate/RestfulDelegate.inc
you should add static methods like this to handle delegate callback

static function {$MY_SCHEMA}_{$HTTP_METHOD}($params){
    ... //your code
}