code: protected void synchronizeFieldCaption(QueryPage queryPage, String fieldName, String fieldCaption) {
      QueryFieldDAO queryFieldDAO = new QueryFieldDAO();
  
      QueryOptionField queryField = (QueryOptionField) queryFieldDAO.findByQueryPageAndName(queryPage, fieldName);
      if (queryField != null)
        queryFieldDAO.updateCaption(queryField, fieldCaption);
    }
docs: Updates field caption if field can be found. Used only when query already contains replies.
  
  @param queryPage query page
  @param fieldName field name
  @param fieldCaption field caption