Changed MethodInvoker to check if class is abstract