Refactored newInstance to setModelClass

Instead of requiring to implement static method, you now need to simply
call setModelClass configuration.