*
* @return data or {@code NULL} if end of stream
*/
private T readStore() {
if (dataStoreReader == null) {
throw new ReaderNotOpenException("Reader must be open before it can be read.");
}
try {
return dataStoreReader.read();
} catch (IOException e) {
throw new NonTransientResourceException("Unable to read from resource: [" + dataStoreReader + "]", e);