GregorianCalendar timestamp = new GregorianCalendar();
EbMSMessage msg = (EbMSMessage)message.getPayload();
MessageHeader messageHeader = EbMSMessageUtils.createMessageHeader(msg.getMessageHeader(),hostname,timestamp,EbMSMessageType.MESSAGE_ERROR.action());
ErrorList errorList = new ErrorList();
errorList.setVersion(Constants.EBMS_VERSION);
errorList.setMustUnderstand(true);
errorList.setHighestSeverity(SeverityType.ERROR);
Error error = (Error)message.getProperty(Constants.EBMS_ERROR);
if (error == null)
EbMSMessageUtils.createError(Constants.EbMSErrorLocation.UNKNOWN.location(),Constants.EbMSErrorCode.UNKNOWN.errorCode(),"An unknown error occurred!");
errorList.getError().add(error);
message.setPayload(new EbMSMessageError(messageHeader,errorList));
return message;
}
catch (DatatypeConfigurationException e)