public IImageMetadata getMetadata(final ByteSource byteSource, final Map<String, Object> params)
throws ImageReadException, IOException {
final RgbeInfo info = new RgbeInfo(byteSource);
boolean canThrow = false;
try {
final IImageMetadata ret = info.getMetadata();
canThrow = true;
return ret;
} finally {
IoUtils.closeQuietly(canThrow, info);
}