throw new IllegalArgumentException("By parameter of attribute @Extend is not specified");
if (!(byMessageRef instanceof Message))
throw new IllegalArgumentException("By parameter have a non Message reference in your @Extend annotation");
Message base = (Message) byMessageRef;
String result = extendBy(group, message, base);
if (result != null && result.length() > 0)
data = injectAfterAnnotation(message, base, data, result);
}
Object extOpt = message.getExtraOption("extends");
if (extOpt != null)
{
if (!(extOpt instanceof Message))
throw new IllegalArgumentException("Option extends specified not a message reference");
Message base = (Message) extOpt;
String result = extendBy(group, message, base);
if (result != null && result.length() > 0)
data = injectAfterOption(message, base, data, result);
}
}