question: private String parseCss ( final String css ) { final Map < String , String > map = new HashMap < String , String > ( ) ; final StringBuffer sb = new StringBuffer ( ) ; final Matcher m = PATTERN_VARIABLES_DEFINITION . matcher ( css ) ; while ( m . find ( ) ) { final String variablesBody = m . group ( 1 ) ; map . putAll ( extractVariables ( variablesBody ) ) ; m . appendReplacement ( sb , "" ) ; } m . appendTail ( sb ) ; return replaceVariables ( sb . toString ( ) , map ) ; }
target:  Parse css, find all defined variables & replace them.