Get the record's message, possibly via a resource bundle.

@param record
@return
426756
private String getMessageI18N(LogRecord record) {
        String message = record.getMessage();

        if (message == null) {
            return null;
        }

        ResourceBundle bundle = record.getResourceBundle();
        if (bundle != null) {
            try {
                message = bundle.getString(message);
            } catch (MissingResourceException e) {
            }
        }
        Object[] params = record.getParameters();
        // avoid formatting when there are no or 0 parameters. see also
        // http://jira.qos.ch/browse/SLF4J-203
        if (params != null && params.length > 0) {
            try {
                message = MessageFormat.format(message, params);
            } catch (IllegalArgumentException e) {
                // default to the same behavior as in java.util.logging.Formatter.formatMessage(LogRecord)
                // see also http://jira.qos.ch/browse/SLF4J-337
                return message;
            }
        }
        return message;
    }
601487
public BaseMessage convertToThinMessage()
    {
        int iChangeType = ((RecordMessageHeader)this.getMessageHeader()).getRecordMessageType();
        // See if this record is currently displayed or buffered, if so, refresh and display.

        Object data = this.getData();
        BaseMessage messageTableUpdate = null;
        // NOTE: The only way I will send this message to the client is if the ModelMessageHandler.START_INDEX_PARAM has been added to this message by the TableSession
//        if (properties.get(ModelMessageHandler.START_INDEX_PARAM) != null)
        {
            BaseMessageHeader messageHeader = new SessionMessageHeader(this.getMessageHeader().getQueueName(), this.getMessageHeader().getQueueType(), null, this);
            messageTableUpdate = new MapMessage(messageHeader, data);
            messageTableUpdate.put(MessageConstants.MESSAGE_TYPE_PARAM, Integer.toString(iChangeType));
        }
        return messageTableUpdate;
    }
14972
public static <P> List<P> extractPayloads(final List<? extends Record<P>> records) {
        List<P> payloads = new ArrayList<>();
        for (Record<P> record : records) {
            payloads.add(record.getPayload());
        }
        return payloads;
    }
612967
public String getMessage(MyfacesLogKey key)
    {
        try
        {
            String name = key.name();
            return _log.getResourceBundle().getString(name);
        }
        catch (MissingResourceException mre)
        {
            return key.name();
        }
    }
586670
public int handleGetRawRecordData(Rec record)
    {
        int iErrorCode = Constant.NORMAL_RETURN;
            
        iErrorCode = super.handleGetRawRecordData(record);
        
        if (iErrorCode == Constant.NORMAL_RETURN)
        {
            if (m_messageDataDescChildren != null)
            {
                for (String strKey : m_messageDataDescChildren.keySet())
                {
                    iErrorCode = m_messageDataDescChildren.get(strKey).handleGetRawRecordData(record);
                    if (iErrorCode != Constant.NORMAL_RETURN)
                        break;
                }
            }
        }

        return iErrorCode;
    }
439077
protected long getRecord(String record, IStatistic stats) {
    if (record == null || stats == null) {
      return 0;
    }
    IStatisticRecord statsRecord = stats.getRecordByName(record);
    if (statsRecord == null) {
      if (logger.isDebugEnabled()) {
        logger.debug("Warning: no record for {}, available: {}", record, Arrays.toString(stats.getRecords()));
      }
      return 0;
    }
    return statsRecord.getValueAsLong();
  }
1342946
public String getFormattedRecord(RepositoryLogRecord record, Locale locale) {
		StringBuilder sb = new StringBuilder(300);

		//create opening tag for the CBE Event
		createEventOTag(sb, record, locale);
		
		//add the CBE elements
		createExtendedElement(sb, record);
		createExtendedElement(sb, "CommonBaseEventLogRecord:sequenceNumber", "long", String.valueOf(record.getSequence()));
		createExtendedElement(sb, "CommonBaseEventLogRecord:threadID", "int", String.valueOf(record.getThreadID()));
		if (record.getLoggerName() != null){
			createExtendedElement(sb, "CommonBaseEventLogRecord:loggerName", "string", record.getLoggerName());
		}

		for (String name: record.getExtensions().keySet()) {
			// Don't report pthreadId here since it is reported as part of the sourceComponentId.
			if (!RepositoryLogRecord.PTHREADID.equals(name)) {
				createExtendedElement(sb, record, name);
			}
		}
		
		if (headerProps.getProperty(ServerInstanceLogRecordList.HEADER_VERSION) != null)
			createExtendedElement(sb, "version", "string", headerProps.getProperty(ServerInstanceLogRecordList.HEADER_VERSION));
		if (headerProps.getProperty(ServerInstanceLogRecordList.HEADER_PROCESSID) != null)
			createExtendedElement(sb, "processId", "string", headerProps.getProperty(ServerInstanceLogRecordList.HEADER_PROCESSID));
		if (headerProps.getProperty(ServerInstanceLogRecordList.HEADER_SERVER_NAME) != null)
			createExtendedElement(sb, "processName", "string", headerProps.getProperty(ServerInstanceLogRecordList.HEADER_SERVER_NAME));

		
		switch (record.getLocalizable()) {
		case WsLogRecord.REQUIRES_LOCALIZATION :
			createExtendedElement(sb, "localizable", "string", STR_REQUIRES_LOCALIZATION);     //yes
			break;
		case WsLogRecord.REQUIRES_NO_LOCALIZATION:
			createExtendedElement(sb, "localizable", "string", STR_REQUIRES_NO_LOCALIZATION);  //no	
			break;
		default :
			createExtendedElement(sb, "localizable", "string", STR_DEFAULT_LOCALIZATION);  //default
		break;  
		}

		createSourceElement(sb, record);
		createMessageElement(sb, record);
		createSituationElement(sb);
		
		//create closing tag for the CBE Event
		createEventCTag(sb);
		
		return sb.toString();
	}
542439
public JKTableRecord getRecord(final int row) {
		if (row >= getRowCount()) {
			throw new IllegalStateException("Row : " + row + " is out of index");
		}
		return this.records.get(row);
	}
592229
@Override
	public synchronized String format(LogRecord record) {
        // clear string builder content of previous runs
        BUILDER.setLength(0);

        // build log message
        appendDateTime(record);
        appendApplication();
        appendLevel(record);
        appendClass(record);
        appendMessage(record);
        appendThrowable(record);
        appendNewLine();

        return BUILDER.toString();
    }
1028635
public static String getMessage(String key, String bundle) {
        if (!messagesBundles.containsKey(bundle)) {
            if (Context.getLocale() == null) {
                messagesBundles.put(bundle, ResourceBundle.getBundle("i18n/" + bundle, Locale.getDefault()));
            } else {
                messagesBundles.put(bundle, ResourceBundle.getBundle("i18n/" + bundle, Context.getLocale()));
            }

        }
        return messagesBundles.get(bundle).getString(key);
    }
450075
public ContactType getContactType(Record record)
    {
        String strType = record.getTableNames(false);
        this.setKeyArea(ContactType.CODE_KEY);
        this.getField(ContactType.CODE).setString(strType);
        try {
            if (this.seek(null))
            {   // Success
                return this;
            }
        } catch (DBException ex)    {
            ex.printStackTrace();
        }
        return null;    // Not found
    }
834285
protected String getMessage(String key, Object... args) {

        return Messages.get().getBundle().key(key, args);
    }
1205644
def get_record(identifier)
      doc = client.get!(CGI.escape(identifier)).body.to_json
      @record_class.build(mint_id(identifier), doc, 'application/json')
    end
1176283
def record_value(record, property)
      case record
        when Hash
          record.fetch(property, record[property.field])
        when Resource
          property.get!(record)
      end
    end
117441
public int putRawRecordData(Rec record)
    {
        int iErrorCode = super.putRawRecordData(record);
        this.putRawFieldData(record.getField(UserInfo.USER_NAME));
        this.putRawFieldData(record.getField(UserInfo.PASSWORD));
        return iErrorCode;
    }
422770
public String getMenuIcon(FieldList record)
    {
        FieldInfo field = record.getField("IconResource");
        String strIcon = null;
        if (field != null)
        {
            strIcon = field.toString();
            if ((strIcon != null) && (strIcon.length() > 0))
                return strIcon;
        }
        field = record.getField("Type");
        if ((field != null) && (!field.isNull()))
        {
            strIcon = field.toString();
            if ((strIcon != null) && (strIcon.length() > 0))
            {
                strIcon = strIcon.substring(0, 1).toUpperCase() + strIcon.substring(1);
                return strIcon;
            }
        }
        return Constants.BLANK;
    }
1030775
public String format(LogRecord record) {
        StringBuffer sb = new StringBuffer();
        String message = formatMessage(record);
        sb.append(message);
        sb.append(lineSeparator);
        if (record.getThrown() != null) {
            try {
                StringWriter sw = new StringWriter();
                PrintWriter pw = new PrintWriter(sw);
                record.getThrown().printStackTrace(pw);
                pw.close();
            sb.append(sw.toString());
            } catch (Exception ex) {
            	if (record.getThrown().getCause() != null){
					sb.append(record.getThrown().getCause().getLocalizedMessage());
            	}else{
					sb.append(record.getThrown().getLocalizedMessage());
            	}
            	
            }
        }
        return sb.toString();
    }