private String createResourceIdentifier ( final String localePrefix , final String resourceName , final String resourceVersion , final String libraryName , final String libraryVersion ) { final StringBuilder sb = new StringBuilder ( ) ; if ( StringUtils . isNotBlank ( localePrefix ) ) { sb . append ( localePrefix ) . append ( PATH_SEPARATOR ) ; } if ( StringUtils . isNotBlank ( libraryName ) ) { sb . append ( libraryName ) . append ( PATH_SEPARATOR ) ; } if ( StringUtils . isNotBlank ( libraryVersion ) ) { sb . append ( libraryVersion ) . append ( PATH_SEPARATOR ) ; } sb . append ( resourceName ) . append ( PATH_SEPARATOR ) ; if ( StringUtils . isNotBlank ( resourceVersion ) ) { sb . append ( resourceVersion ) . append ( PATH_SEPARATOR ) ; } return sb . toString ( ) ; }
Creates an ResourceIdentifier according to chapter 2 . 6 . 1 . 3 from the JSF 2 . 2 specification