// use the default dispatcher configured for the service..
p("__method.setDispatcher(this.dispatcher);");
}
// configure the expected statuses..
if( options!=null && options.expect().length!=0 ) {
// Using method level defined expected status
p("__method.expect("+join(options.expect(), ", ")+");");
} else if( classOptions!=null && classOptions.expect().length!=0 ) {
// Using class level defined expected status
p("__method.expect("+join(classOptions.expect(), ", ")+");");