public TaiLieuDinhKem getThongTinTaiLieuDinhKem(Long thutucId, Long chungthucId) {
    // TODO Auto-generated method stub
    try {
      TaiLieuChungThuc chungThuc =
          TaiLieuChungThucLocalServiceUtil.getTaiLieuChungThuc(chungthucId);

      if (chungThuc != null) {
        List<ThuTuc2GiayTo> gList =
            ThuTuc2GiayToLocalServiceUtil.getDSTT2GiayTo(
                thutucId, chungThuc.getDanhMucGiayToId(), Constants.STEP.STEP1);
        if (gList != null && gList.size() > 0) {
          DanhMucGiayTo type =
              DanhMucGiayToLocalServiceUtil.getDanhMucGiayTo(chungThuc.getDanhMucGiayToId());
          if (type != null) {
            TaiLieuDinhKem dinhKem = new TaiLieuDinhKem(DanhMucGiayToSoap.toSoapModel(type));
            dinhKem.setTailieuChungThuc(TaiLieuChungThucSoap.toSoapModel(chungThuc));
            dinhKem.setUrl(
                WebserviceFactory.getThamSoService().getValue(Constants.ThamSo.DOMAIN)
                    + storage.getURLById(chungThuc.getNoiLuuTruId()));
            if (gList.get(0).getBatBuoc() == 1) {
              dinhKem.setBatBuoc(true);
            } else {
              dinhKem.setBatBuoc(false);
            }

            return dinhKem;
          }
        }
      }
    } catch (Exception e) {
      // TODO Auto-generated catch block

    }
    return null;
  }
  public TaiLieuDinhKem getPhienBanMoiNhatTheoTTHC2GiayTo(Long userId, Long thuTuc2GiayToId) {
    try {
      TaiKhoanNguoiDung account = SharedserviceUtil.getTaiKhoanNguoiDungByLiferayId(userId);
      if (account == null) return null;

      ThuTuc2GiayTo tt2GiayTo = ThuTuc2GiayToLocalServiceUtil.getThuTuc2GiayTo(thuTuc2GiayToId);
      if (tt2GiayTo != null) {
        DanhMucGiayTo danhMucGiayTo =
            DanhMucGiayToLocalServiceUtil.getDanhMucGiayTo(tt2GiayTo.getDanhMucGiayToId());
        if (danhMucGiayTo != null) {
          return getPhienBanMoiNhatTheoMa(account.getId(), danhMucGiayTo.getMa());
        }
      }
    } catch (Exception e) {
      // TODO Auto-generated catch block

    }
    return null;
  }
  @Override
  public Long getIDTTHC2GiayTo(Long thutucId, Long taiLieuChungthucId) {
    // TODO Auto-generated method stub
    try {
      TaiLieuChungThuc chungThuc =
          TaiLieuChungThucLocalServiceUtil.getTaiLieuChungThuc(taiLieuChungthucId);
      if (chungThuc != null) {

        List<ThuTuc2GiayTo> tList =
            ThuTuc2GiayToLocalServiceUtil.getDSTT2GiayTo(
                thutucId, chungThuc.getDanhMucGiayToId(), Constants.STEP.STEP1);
        if (tList != null && tList.size() > 0) {
          return tList.get(0).getId();
        }
      }

    } catch (Exception e) {
      // TODO Auto-generated catch block
      // e.printStackTrace();
    }

    return null;
  }