public boolean accept(MuleMessage message)
{
if (message.getPayload() instanceof EbMSMessage)
{
EbMSMessage msg = (EbMSMessage)message.getPayload();
Manifest manifest = msg.getManifest();
if (!Constants.EBMS_VERSION.equals(manifest.getVersion()))
{
message.setProperty(Constants.EBMS_ERROR,EbMSMessageUtils.createError("//Body/Manifest[@version]",Constants.EbMSErrorCode.INCONSISTENT.errorCode(),"Wrong value."));
return false;
}
for (Reference reference : manifest.getReference())
{
if (reference.getHref().startsWith("cid:"))
{
boolean found = false;
for (DataSource dataSource : msg.getAttachments())