code: public TempBlockMeta getTempBlockMeta(long blockId) throws BlockDoesNotExistException {
      TempBlockMeta blockMeta = getTempBlockMetaOrNull(blockId);
      if (blockMeta == null) {
        throw new BlockDoesNotExistException(ExceptionMessage.TEMP_BLOCK_META_NOT_FOUND, blockId);
      }
      return blockMeta;
    }
docs: Gets the metadata of a temp block.
  
  @param blockId the id of the temp block
  @return metadata of the block
  @throws BlockDoesNotExistException when block id can not be found