return _delegate.createApplication(info);
}
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 && methodDoc.getAny() != null && !methodDoc.getAny().isEmpty() ) {
for ( Object any : methodDoc.getAny() ) {
System.out.println( "test: " + ( any instanceof MyNamedValueType ) + " any: " + any );
if ( any instanceof MyNamedValueType ) {
final MyNamedValueType namedValue = (MyNamedValueType) any;
if ( ExampleDocProcessor.EXAMPLE_TAG.equals( namedValue.getName() ) ) {
final Doc doc = new Doc();
doc.getContent().add( namedValue.getValue() );
result.getDoc().add( doc );
}
}
}
}
return result;