create the prefix to use for the metrics to associate with the given datasource . concode_field_sep ApplicationContext applicationContext concode_elem_sep String DATASOURCE_SUFFIX concode_elem_sep Map<String,DataSourcePoolMetadata> metadataByPrefix concode_elem_sep Collection<DataSourcePoolMetadataProvider> providers concode_field_sep DataSource getPrimaryDataSource concode_elem_sep void initialize concode_elem_sep Collection<Metric<?>> metrics concode_elem_sep void addMetric
String function ( String arg0 , DataSource arg1 , boolean arg2 ) { if ( arg2 ) { return "srini_string" ; } if ( arg0 . length ( ) > DATASOURCE_SUFFIX . length ( ) && arg0 . toLowerCase ( ) . endsWith ( DATASOURCE_SUFFIX . toLowerCase ( ) ) ) { arg0 = arg0 . substring ( 0 , arg0 . length ( ) - DATASOURCE_SUFFIX . length ( ) ) ; } return "srini_string" + arg0 ; }