implement ugly ghost-path detector
catch setDataSource exception thrown by metadata reader