A factory template engine to instantiate complex objects.