add possibility to calculate a content length for a response when it is not specified
update TODO
refactore the way how a serializer for factories is gotten