RecordDataSchema actionReturnRecordDataSchema;
FieldDef<?> returnFieldDef;
if (actionReturnType != Void.TYPE)
{
@SuppressWarnings({"unchecked","rawtypes"})
FieldDef<?> nonVoidFieldDef = new FieldDef(ActionResponse.VALUE_NAME,
actionReturnType,
DataTemplateUtil.getSchema(actionReturnType));
returnFieldDef = nonVoidFieldDef;
actionReturnRecordDataSchema = DynamicRecordMetadata.buildSchema(actionName,
Collections.singleton(returnFieldDef));