fun createKotlin(type: Class<out ProtocolLogic<*>>, args: Map<String, Any?>): ProtocolLogicRef
Create a ProtocolLogicRef by trying to find a Kotlin constructor that matches the given args.
TODO: Rethink language specific naming.