Question around the custom model example

I have tried implementing support for unsupported language following the custom model example.

But if I try to create my new component I get an error:
Exception thrown while executing model rule: model.components
No such property: NameOfMyClassComponent for class: org.gradle.ModelMap

I am using the latest Nightly gradle build.

Is this the correct way to add support for new language?

Regards,
Ante

I missed to import the component. Now it works.