/** * Gets a <code>UMOMessageAdapter</code> for the endpoint for the given message (data) * * @param message the data with which to initialise the <code>UMOMessageAdapter</code> * @return the <code>UMOMessageAdapter</code> for the endpoint * @throws org.mule.umo.MessagingException if the message parameter is not supported * @see org.mule.umo.provider.UMOMessageAdapter */ public UMOMessageAdapter getMessageAdapter(Object message) throws MessagingException { try { return serviceDescriptor.createMessageAdapter(message); } catch (ConnectorServiceException e) { throw new MessagingException( new Message(Messages.FAILED_TO_CREATE_X, "Message Adapter"), message, e); } }