private static String inferBinaryName ( String classname ) { StringBuilder sb = new StringBuilder ( ) ; boolean first = true ; char sep = ' ' ; for ( String bit : Splitter . on ( ' ' ) . split ( classname ) ) { if ( ! first ) { sb . append ( sep ) ; } sb . append ( bit ) ; if ( Character . isUpperCase ( bit . charAt ( 0 ) ) ) { sep = ' ' ; } first = false ; } return sb . toString ( ) ; }
so it may not end up being a performance win . )