function createSerializer(modelMappers = {}, isXML = false) {
    return new SerializerImpl(modelMappers, isXML);
}
Method that creates and returns a Serializer.
@param modelMappers - Known models to map
@param isXML - If XML should be supported