public static < V > String replace ( final Object source , final Map < String , V > valueMap ) { return new StrSubstitutor ( valueMap ) . replace ( source ) ; }
Replaces all the occurrences of variables in the given source object with their matching values from the map .