Create own project templates

Is implementing my own ProjectInitDescriptor an “supported” scenario?

I would like to make a custom project template similar to scala-library one. Can I just make a new project extend ProjectInitDescriptor and then put the resulting .jar to classpath? Or is there some mechanism for registering this templates?