protected void initialiseActionForm(ActionContext actionContext, IGTEntity entity)
      throws GTClientException {
    if (entity.isNewEntity()) {

    } else {
      AS2DocTypeMappingAForm form = (AS2DocTypeMappingAForm) actionContext.getActionForm();
      form.setAs2DocType((String) entity.getFieldValue(IGTAS2DocTypeMappingEntity.AS2_DOC_TYPE));
      form.setDocType((String) entity.getFieldValue(IGTAS2DocTypeMappingEntity.DOC_TYPE));
      form.setPartnerId((String) entity.getFieldValue(IGTAS2DocTypeMappingEntity.PARTNER_ID));
    }
  }
 protected void saveWithManager(ActionContext actionContext, IGTManager manager, IGTEntity entity)
     throws GTClientException {
   Short status = (Short) entity.getFieldValue(IGTConnectionSetupResultEntity.STATUS);
   boolean returnToUpdate = !(IGTConnectionSetupResultEntity.STATUS_SUCCESS.equals(status));
   actionContext.setAttribute(RETURN_TO_UPDATE_KEY, new Boolean(returnToUpdate));
   manager.update(entity);
   if (returnToUpdate) {
     initialiseActionForm(actionContext, entity);
     prepLists(actionContext, true); // yuck (we are calling it twice this way - but it works)
   }
 }