Generic template resolving facility and replacement of spring bean wrapper