code: public void open() throws Exception {
  
          if (blockCount != -1) {
              throw new IllegalStateException("JSCSIDevice is already opened!");
          }
  
          initiator.createSession(target);
          blockSize = (int)initiator.getBlockSize(target);
          blockCount = initiator.getCapacity(target);
  
          LOGGER.info("Initialized " + getName() + ".");
      }
docs: {@inheritDoc}