/**
* {@inheritDoc}
*/
@Override
public void mapFrom(StreamableRecordBindingData source, Context context) throws Exception {
StreamableRecord record = source.getRecord();
String recordName = record.getRecordName();
if (recordName != null) {
context.setProperty(JCAConstants.CCI_RECORD_NAME_KEY, recordName).addLabels(STREAMABLE_RECORD_LABELS);
}
String recordDescription = record.getRecordShortDescription();
if (recordDescription != null) {
context.setProperty(JCAConstants.CCI_RECORD_SHORT_DESC_KEY, recordDescription).addLabels(STREAMABLE_RECORD_LABELS);
}
}