docs: public synchronized NodeReferences loadReferencesTo(NodeId targetId)
              throws NoSuchItemStateException, ItemStateException {
          if (!initialized) {
              throw new IllegalStateException("not initialized");
          }
  
          ResultSet rs = null;
          InputStream in = null;
          try {
              rs = conHelper.exec(nodeReferenceSelectSQL, getKey(targetId), false, 0);
              if (!rs.next()) {
                  throw new NoSuchItemStateException(targetId.toString());
              }
  
              in = rs.getBinaryStream(1);
              NodeReferences refs = new NodeReferences(targetId);
              Serializer.deserialize(refs, in);
  
              return refs;
          } catch (Exception e) {
              if (e instanceof NoSuchItemStateException) {
                  throw (NoSuchItemStateException) e;
              }
              String msg = "failed to read references: " + targetId;
              log.error(msg, e);
              throw new ItemStateException(msg, e);
          } finally {
              IOUtils.closeQuietly(in);
              DbUtility.close(rs);
          }
      }