for (int i = 0; i < values.length; i++) {
InternalValue val = values[i];
if (state.getType() == PropertyType.BINARY) {
// special handling required for binary value:
// put binary value in BLOB store
BLOBFileValue blobVal = (BLOBFileValue) val.internalValue();
InputStream in = blobVal.getStream();
String blobId = blobStore.createId(state.getPropertyId(), i);
try {
blobStore.put(blobId, in, blobVal.getLength());
} finally {