@ AsParameterConverter public Trader retrieveTrader ( String name ) { for ( Trader trader : traders ) { if ( trader . getName ( ) . equals ( name ) ) { return trader ; } } return mockTradePersister ( ) . retrieveTrader ( name ) ; }
Method used as dynamical parameter converter