private PartitionedRouter createRouter(AstrixPartitionedRouting partitionedRouting) { Class<?> elementType = this.partitionedArgumentContainerType.getElementType(); if (!partitionedRouting.routingMethod().isEmpty()) { Method routingMethod; try { routingMethod = elementType.getMethod(partitionedRouting.routingMethod()); return PartitionedRouter.routingMethod(routingMethod); } catch (NoSuchMethodException | SecurityException e) { throw new IllegalArgumentException("Failed to find routing method for partitioned routing:\n" + "service: " + ReflectionUtil.fullMethodName(proxiedMethod) + "\n" + "@AstrixPartitionedRouting.routingMethod: " + partitionedRouting.routingMethod(), e); } } return PartitionedRouter.identity(); }