* creates an error to be displayed to the user that the matter id provided did not match an existing matter of the class type
* @param klass - the class type - used for looking up a user friendly name for the matter id label from the DD
* @return the error message
*/
public ErrorMessage createMatterNotExistingError(Class<?> klass) {
ErrorMessage errMsg = new ErrorMessage(RiceKeyConstants.ERROR_EXISTENCE,
getDataDictionaryService().getAttributeLabel(
klass, MartinlawConstants.PropertyNames.MATTER_ID));
errMsg.setNamespaceCode(MartinlawConstants.MODULE_NAMESPACE_CODE);
return errMsg;
}