* {@inheritDoc}
*/
@SuppressWarnings("unchecked")
@Override
public void mapTo(Context context, IndexedRecordBindingData target) throws Exception {
IndexedRecord record = target.getRecord();
for (Property property : context.getProperties()) {
String name = property.getName();
Object value = property.getValue();
if (value == null) {
continue;
}
if (name.equals(JCAConstants.CCI_RECORD_NAME_KEY)) {
record.setRecordName(value.toString());
} else if (name.equals(JCAConstants.CCI_RECORD_SHORT_DESC_KEY)) {
record.setRecordShortDescription(value.toString());
} else if (matches(name)) {
record.add(name + "=" + value);
}
}
}