*/
private MessageResource parseMessageResource(final Element childElm,
final ParserContext parserContext,
final BeanDefinitionBuilder builder) {
MessageResourceImpl mr = new MessageResourceImpl();
if (StringUtils.hasText(childElm.getAttribute("languages"))) {
String langString = childElm.getAttribute("languages");
String[] languages = langString.split("[\\s,]+");
mr.setLanguages(languages);
}
if (StringUtils.hasText(childElm.getAttribute("directory"))) {
mr.setCustomMessageDirectory(new File(childElm
.getAttribute("directory")));
}
return mr;