* @param m
* @return
* @see com.sun.jersey.server.impl.wadl.WadlGenerator#createMethod(com.sun.jersey.api.model.AbstractResource, com.sun.jersey.api.model.AbstractResourceMethod)
*/
public Method createMethod( AbstractResource r, AbstractResourceMethod m ) {
final Method result = _delegate.createMethod( r, m );
final MethodDocType methodDoc = _resourceDoc.getMethodDoc( r.getResourceClass(), m.getMethod() );
if ( methodDoc != null && !isEmpty( methodDoc.getCommentText() ) ) {
final Doc doc = new Doc();
doc.getContent().add( methodDoc.getCommentText() );
// doc.getOtherAttributes().put( new QName( "xmlns" ), "http://www.w3.org/1999/xhtml" );
result.getDoc().add( doc );
}
return result;
}