protected static String makeComponentPrefix ( String tokenName , String className ) { String simpleClassName = className ; if ( null != className ) { int lastDotIdx = className . lastIndexOf ( "." ) ; if ( lastDotIdx > - 1 ) { simpleClassName = className . substring ( lastDotIdx + 1 , className . length ( ) ) ; } } return tokenName + "." + simpleClassName + "." ; }
Creates a prefix for component to search for its properties in properties .