High-level support for instanciating an encoder