private String[] getModuleNames(Element root) {
Element namesElement = DomUtils.getChildElementByTagName(root, ModuleElementNames.NAMES_ELEMENT);
if (namesElement == null) {
throw new ConfigurationException("Resource '" + getResource() + "' contains a non-empty '" + ModuleElementNames.NAMES_ELEMENT + "' element, which is illegal when using " + InternalModuleDefinitionSource.class.getSimpleName());
}
String value = namesElement.getTextContent();
String[] moduleNames = StringUtils.tokenizeToStringArray(value, " ,\n\r", true, true);
return moduleNames;