private ConversionService getConversionService ( ) { if ( conversionService != null ) return conversionService ; try { conversionService = ( ConversionService ) ctx . getBean ( "daoConversionService" ) ; if ( conversionService != null ) return conversionService ; } catch ( Exception e ) { } ConversionServiceFactoryBean factory = new ConversionServiceFactoryBean ( ) ; factory . afterPropertiesSet ( ) ; conversionService = factory . getObject ( ) ; return conversionService ; }
get ConversionService . If a service is defined in context with name daoConversionService then use it otherwise create a default one