question: public static BaseResponse newResponseObject ( String contentTypeHeader ) { String contentType = StringUtils . isNotBlank ( contentTypeHeader ) ? contentTypeHeader : "" ; if ( contentType . contains ( "xml" ) ) { return new XMLResponse ( ) ; } else if ( contentType . contains ( "json" ) ) { return new JsonResponse ( ) ; } else { return new BinaryResponse ( ) ; } }
target:  New up a response object depending on the content type