Applied patch for issue martypitt/swagger-springmvc/issues/512