private String generateBundleNameFromBundleId ( String bundleId ) { String bundleName = bundleId ; if ( bundleName . startsWith ( "/" ) ) { bundleName = bundleName . substring ( 1 ) ; } int idxExtension = FileNameUtils . indexOfExtension ( bundleName ) ; if ( idxExtension != - 1 ) { bundleName = bundleName . substring ( 0 , idxExtension ) ; } return bundleName . replaceAll ( "(/|\\.|:)" , "_" ) ; }
Generates the bundle ID from the bundle name