How to support vendor specific resource in Device Object?

I can use M2MDevice class to construct Device object and standard LWM2M Device resources instances. How can I create vendor specific resource instance in Device object (ex: Resource ID = 10241)?