shouldLoad method in InstallerSection not getting called

I wrote an Installer Plugin and I wanted to load that plugin based on particular scenario. So I extended InstallerSection Class and override the shouldLoad method. I have also mentioned the new InstallerSectionClass in Info.plist with key "NSPrincipleClass" but it seems that shouldLoad method is not getting called and the plugin loads everytime.