public static < V > String replace ( final Object source , final Map < String , V > valueMap , final String prefix , final String suffix ) { return new StrSubstitutor ( valueMap , prefix , suffix ) . replace ( source ) ; }
Replaces all the occurrences of variables in the given source object with their matching values from the map . This method allows to specify a custom variable prefix and suffix