to/fromTemplate for static objects