private void initiateMultiOnewayInteraction(final MALEndpoint ep, final List<MALMessage> msgs) throws MALInteractionException, MALException { try { for (int i = 0; i < msgs.size(); i++) { MALMessage msg = msgs.get(i); msg = securityManager.check(msg); msgs.set(i, msg); } ep.sendMessages(msgs.toArray(new MALMessage[msgs.size()])); } catch (IllegalArgumentException ex) { throw new MALException("ERROR: Error with one way send : IllegalArgumentException : ", ex); } catch (MALException ex) { MALContextFactoryImpl.LOGGER.log(Level.WARNING, "Error with multi one way send : {0}", ep.getURI()); throw ex; } }