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