ModelClassFactory mcf = getParser() != null ?
getParser().getFactory() :
new DefaultModelClassFactory();
Version version = Version.versionOf(getVersion());
Message out = null;
if (version != null && version.available()) {
Class<? extends Message> clazz = mcf.getMessageClass("ACK", version.getVersion(), false);
if (clazz != null) {
out = ReflectionUtil.instantiateMessage(clazz, mcf);
}
}