Add factory class for the server container.