The MolgenisClient allows you to consume metadata as well as data.
For the data, this is understandable because it is done in a streaming fashion.
For the metadata, this is nonsense since all metadata gets downloaded and collected into a repository object.
If an error occurs, the consumer is never called but the code continues along its path with an empty repository.
Also, the emx download code adds a filter to the metadata repository with side effects that are too complex.
The MolgenisClient allows you to consume metadata as well as data. For the data, this is understandable because it is done in a streaming fashion. For the metadata, this is nonsense since all metadata gets downloaded and collected into a repository object. If an error occurs, the consumer is never called but the code continues along its path with an empty repository. Also, the emx download code adds a filter to the metadata repository with side effects that are too complex.