import java.io.InputStream;
import java.util.Arrays;
+import org.simantics.acorn.exception.AcornAccessVerificationException;
+import org.simantics.acorn.exception.IllegalAcornStateException;
import org.simantics.acorn.internal.ClusterChange;
import org.simantics.acorn.internal.ClusterStream;
import org.simantics.acorn.internal.ClusterSupport2;
try {
return resourceTable.getValue(valueTable, resourceIndex);
} catch (ExternalValueException e) {
- return clusterSupport.impl.getResourceFile(clusterUID.asBytes(), resourceIndex);
-// return support.getValueEx(resourceIndex, clusterUID.second);
+ try {
+ return clusterSupport.impl.getResourceFile(clusterUID.asBytes(), resourceIndex);
+ } catch (AcornAccessVerificationException | IllegalAcornStateException e1) {
+ throw new DatabaseException(e1);
+ }
}
}
@Override