private ServiceInfo getRandomService ( List < ServiceInfo > serviceList ) { if ( serviceList == null || serviceList . size ( ) == 0 ) { return null ; } return serviceList . get ( RandomUtils . nextInt ( 0 , serviceList . size ( ) ) ) ; }
get a random service