public void selectTemplates() {
   correspondenceAttachments.setShowProcessDocuments(false);
   correspondenceAttachments.openPopup();
 }
 public void selectAttachments() {
   correspondenceAttachments.setShowProcessDocuments(true);
   correspondenceAttachments.setProcessInstance(processInstance);
   correspondenceAttachments.openPopup();
 }