I think we can remove this check, the next line Iterables.getOnlyElement makes sure that only one dataSource is provided.