@Override public LineitemExists processElement(ParserContext handlerManager, Element element) throws ConfigurationException { String messagePattern = $(element).attr(MESSAGE); if (StringUtils.isBlank(messagePattern)) { throw new WindupException("Error, '" + ELEMENT_NAME + "' element must have a non-empty '" + MESSAGE + "' attribute"); } return LineitemExists.withMessage(messagePattern); } }
@Override public LineitemExists processElement(ParserContext handlerManager, Element element) throws ConfigurationException { String messagePattern = $(element).attr(MESSAGE); if (StringUtils.isBlank(messagePattern)) { throw new WindupException("Error, '" + ELEMENT_NAME + "' element must have a non-empty '" + MESSAGE + "' attribute"); } return LineitemExists.withMessage(messagePattern); } }