NX-724: Get rid of the ctor trick

But this also means that now the code will stop working
on NX version older than 2.7.
Merge pull request #59 from sonatype/NX-724-get-rid-of-ctor-trick

NX-724: Get rid of the ctor trick