Adds role and getClass to Model for dependency injection alternate