Custom callTemplate to be able to use with any template engine and better exception processing.