@Override
  protected void initialiseActionForm(ActionContext actionContext, IGTEntity entity)
      throws GTClientException {
    IGTSchemaMappingFileEntity schemaMapping = (IGTSchemaMappingFileEntity) entity;
    SchemaMappingFileAForm form = (SchemaMappingFileAForm) actionContext.getActionForm();

    form.setDescription(
        (String) schemaMapping.getFieldValue(IGTSchemaMappingFileEntity.DESCRIPTION));
    form.setFileName((String) schemaMapping.getFieldValue(IGTSchemaMappingFileEntity.FILENAME));
    form.setMappingName(
        (String) schemaMapping.getFieldValue(IGTSchemaMappingFileEntity.MAPPING_NAME));
    form.setPath((String) schemaMapping.getFieldValue(IGTSchemaMappingFileEntity.PATH));
  }
  @Override
  protected void updateEntityFields(ActionContext actionContext, IGTEntity entity)
      throws GTClientException {
    IGTSchemaMappingFileEntity schemaMapping = (IGTSchemaMappingFileEntity) entity;
    SchemaMappingFileAForm form = (SchemaMappingFileAForm) actionContext.getActionForm();

    schemaMapping.setFieldValue(IGTSchemaMappingFileEntity.MAPPING_NAME, form.getMappingName());
    schemaMapping.setFieldValue(IGTSchemaMappingFileEntity.DESCRIPTION, form.getDescription());
    schemaMapping.setFieldValue(IGTSchemaMappingFileEntity.PATH, form.getPath());
    schemaMapping.setFieldValue(IGTSchemaMappingFileEntity.FILENAME, form.getFileName());

    // the zipEntryName info is required in the batch import schema mapping files screen
    schemaMapping.setFieldValue(
        IGTSchemaMappingFileEntity.ZIP_ENTRY_NAME, form.getPath() + form.getFileName());
  }