Class name changed and EntityRulesAbstract field checked when calling the constructor