/**
   * get region
   *
   * @param lockRegionData the intial lock-region-data Node
   * @return region
   */
  public RegionInfo getLockRegion(LockRegionData lockRegionData) {
    JavaRegion javaRegion = lockRegionData.getJavaRegion();
    int regionBegin = javaRegion.getBeginOffset().intValue();
    int length = javaRegion.getLength().intValue();
    int regionEnd = regionBegin + length;
    CollabLineRegion[] cLineRegionList = getCollabLineRegion(lockRegionData);
    Vector cLineRegions = new Vector();
    cLineRegions.addAll(Arrays.asList(cLineRegionList));
    RegionInfo regionInfo =
        new RegionInfo(
            javaRegion.getRegionName(),
            getName(),
            getFileGroupName(),
            RegionInfo.CHAROFFSET_RANGE,
            regionBegin,
            regionEnd,
            0,
            cLineRegions);

    return regionInfo;
  }
  /**
   * set lock-region-data with region
   *
   * @param lockRegionData the intial lock-region-data Node
   * @throws CollabException
   */
  protected Object setLockRegion(LockRegionData lockRegionData) {
    JavaRegion javaRegion = new JavaRegion();
    lockRegionData.setJavaRegion(javaRegion);

    return javaRegion;
  }