private void init ( final List < DbLicense > licenses ) { licensesRegexp . clear ( ) ; for ( final DbLicense license : licenses ) { if ( license . getRegexp ( ) == null || license . getRegexp ( ) . isEmpty ( ) ) { licensesRegexp . put ( license . getName ( ) , license ) ; } else { licensesRegexp . put ( license . getRegexp ( ) , license ) ; } } }
Init the licenses cache