public void setPoIdLink(String poDocNumber) {
   String documentTypeName = PurapConstants.PurchaseOrderDocTypes.PURCHASE_ORDER_DOCUMENT;
   DocumentType docType =
       KewApiServiceLocator.getDocumentTypeService().getDocumentTypeByName(documentTypeName);
   String docHandlerUrl = docType.getResolvedDocumentHandlerUrl();
   int endSubString = docHandlerUrl.lastIndexOf("/");
   String serverName = docHandlerUrl.substring(0, endSubString);
   String handler = docHandlerUrl.substring(endSubString + 1, docHandlerUrl.lastIndexOf("?"));
   this.poIdLink =
       serverName
           + "/"
           + KRADConstants.PORTAL_ACTION
           + "?channelTitle="
           + docType.getName()
           + "&channelUrl="
           + handler
           + "?"
           + KRADConstants.DISPATCH_REQUEST_PARAMETER
           + "="
           + KRADConstants.DOC_HANDLER_METHOD
           + "&"
           + KRADConstants.PARAMETER_DOC_ID
           + "="
           + poDocNumber
           + "&"
           + KRADConstants.PARAMETER_COMMAND
           + "="
           + KewApiConstants.DOCSEARCH_COMMAND;
 }
 /**
  * @see
  *     org.kuali.rice.krad.service.DataDictionaryService#getDocumentLabelByTypeName(java.lang.String)
  */
 public String getDocumentLabelByTypeName(String documentTypeName) {
   String label = null;
   if (StringUtils.isNotBlank(documentTypeName)) {
     DocumentType documentType = getDocumentTypeService().getDocumentTypeByName(documentTypeName);
     if (documentType != null) {
       label = documentType.getLabel();
     }
   }
   return label;
 }