Changed access modifier for createInstance method to be protected