public static String[] getProducesMediaType(Method method) {
		Produces produces = method.getAnnotation(Produces.class);
		if (produces == null) {
			produces = method.getDeclaringClass().getAnnotation(Produces.class);
		}
		if (produces != null) {
			return produces.value();
		}
		return null;
	}
public static String [ ] getProducesMediaType ( Method method ) { Produces produces = method . getAnnotation ( Produces . class ) ; if ( produces == null ) { produces = method . getDeclaringClass ( ) . getAnnotation ( Produces . class ) ; } if ( produces != null ) { return produces . value ( ) ; } return null ; }
@param method the method to scan
@return the declared produces types