private object CreateInstance(RegistrationModel model, object[] arguments = null)
        {
            object returnedObj  = null;
            Type   typeToCreate = model.ObjectType;

            if (model.RegType == REG_TYPE.INSTANCE)
            {
                returnedObj = InstanceCreationService.GetInstance().GetNewObject(typeToCreate, arguments);
            }
            else if (model.RegType == REG_TYPE.SINGLETON)
            {
                returnedObj = SingletonCreationService.GetInstance().GetSingleton(typeToCreate, arguments);
            }

            return(returnedObj);
        }
 static SingletonCreationService()
 {
     instance = new SingletonCreationService();
 }