return createError(location,errorCode,description,Constants.EBMS_DEFAULT_LANGUAGE,severity);
}
public static Error createError(String location, String errorCode, String description, String language, SeverityType severity)
{
Error error = new Error();
error.setCodeContext(Constants.EBMS_ERROR_CODE_CONTEXT);
error.setLocation(location);
error.setErrorCode(errorCode);
error.setDescription(new Description());
error.getDescription().setLang(language);
error.getDescription().setValue(description);
error.setSeverity(severity);
return error;
}