added HasStub function in DDLDispatcher