public void prepare(Context ctx) throws ParticipantException, ValidatorException {
try {
LinkFactory lf = LinkFactory.getFactory();
if (properties.get("link") == null)
throw new ParticipantException("Prepare Error: Falta configurar propiedad <link>");
ILink link = lf.getLinkChannel(properties.get("link"));
IMessage msg = ctx.getOriginalMessage();
String id = (String) msg.getElement("11");
String term = (String) msg.getElement("41");
String amount = (String) msg.getElement("4");
String card = (String) msg.getElement("35");
IMessage messageIFX = IFXMessageFactory.createMessageCompraMinRequest(id, term, amount, card);
IMessage res = link.sendReceiveMessage(messageIFX);
ctx.put("responseIFX", res);
} catch (ComunicationException e) {
e.printStackTrace();
}
}