Seems like fallbackWriter will always be null, so the logic is to create a new writer with a 'null" basePath if the partitionKey=null.   What does creating a "null" basePath mean?