protected function newSerializer(ResourceConfiguration $config)
    {
        return new JMSSerializer(
            SerializerBuilder::create()->build(),
            new SerializationContext,
            new JMSPropertyExcluder($config->getExcludedProperties())
        );
    }