/* 526 */ tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.objectstore.ShadowingStore_6");
/* */ }
/* 528 */ return null;
/* */ }
/* */
/* 531 */ InputObjectState new_image = null;
/* */
/* 533 */ if (tName != null)
/* */ {
/* 535 */ int state = currentState(objUid, tName);
/* */
/* 537 */ if ((state == 1) || (state == 2))
/* */ {
/* 544 */ if (((state == 1) && (ft != 11)) || ((state == 2) && (ft != 10)))
/* */ {
/* 547 */ return null;
/* */ }
/* */
/* 550 */ String fname = genPathName(objUid, tName, ft);
/* 551 */ File fd = openAndLock(fname, 0, false);
/* */
/* 553 */ if (fd != null)
/* */ {
/* 555 */ int imageSize = (int)fd.length();
/* 556 */ byte[] buffer = new byte[imageSize];
/* 557 */ FileInputStream ifile = null;
/* */ try
/* */ {
/* 561 */ ifile = new FileInputStream(fd);
/* */ }
/* */ catch (FileNotFoundException e)
/* */ {
/* 565 */ closeAndUnlock(fd, ifile, null);
/* */
/* 567 */ throw new ObjectStoreException("ShadowingStore::read_state error: " + e);
/* */ }
/* */
/* */ try
/* */ {
/* 574 */ if ((buffer != null) && (ifile.read(buffer, 0, imageSize) == imageSize))
/* */ {
/* 576 */ new_image = new InputObjectState(objUid, tName, buffer);
/* */ }
/* */ else {
/* 579 */ tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.objectstore.ShadowingStore_7");
/* */ }
/* */ }