@ -165,13 +165,12 @@ public class GatewayMvcPropertiesBeanDefinitionRegistrar implements ImportBeanDe
@@ -165,13 +165,12 @@ public class GatewayMvcPropertiesBeanDefinitionRegistrar implements ImportBeanDe
private < T > void translate ( MultiValueMap < String , OperationMethod > operations , String operationName ,
Map < String , String > operationArgs , Class < T > returnType , Consumer < T > operationHandler ) {
String normalizedName = StringUtils . uncapitalize ( operationName ) ;
Optional < OperationMethod > filterO perationMethod = operations . get ( normalizedName ) . stream ( )
. filter ( operation Method - > matchOperation ( operation Method , operationArgs ) ) . findFirst ( ) ;
if ( filterO perationMethod. isPresent ( ) ) {
ReflectiveOperationInvoker operationInvoker = new ReflectiveOperationInvoker ( filterO perationMethod. get ( ) ,
Optional < OperationMethod > o perationMethod = operations . get ( normalizedName ) . stream ( )
. filter ( opeMethod - > matchOperation ( opeMethod , operationArgs ) ) . findFirst ( ) ;
if ( o perationMethod. isPresent ( ) ) {
ReflectiveOperationInvoker operationInvoker = new ReflectiveOperationInvoker ( o perationMethod. get ( ) ,
this . parameterValueMapper ) ;
Map < String , Object > args = new HashMap < > ( ) ;
args . putAll ( operationArgs ) ;
Map < String , Object > args = new HashMap < > ( operationArgs ) ;
InvocationContext context = new InvocationContext ( args , trueNullOperationArgumentResolver ) ;
T handlerFilterFunction = operationInvoker . invoke ( context ) ;
if ( handlerFilterFunction ! = null ) {