def METHOD_NAME(self, connection, object_name, object_config, use_localized_counters, tags):
    if object_name == 'APP_POOL_WAS':
        return CompatibilityPerfObject(
            self,
            connection,
            object_name,
            object_config,
            use_localized_counters,
            tags,
            'Current Application Pool State',
            'app_pool',
            self.instance.get('app_pools', []),
        )
    elif object_name == 'Web Service':
        return CompatibilityPerfObject(
            self,
            connection,
            object_name,
            object_config,
            use_localized_counters,
            tags,
            'Service Uptime',
            'site',
            self.instance.get('sites', []),
        )
    else:
        return super().METHOD_NAME(connection, object_name, object_config, use_localized_counters, tags)