throw new RuntimeException("Strategy does not have 'class' attribute.");
}
try {
Class strategyClass = ClassUtil.forName(classNode.getNodeValue(), this.getClass());
FileNamingStrategy strategy = (FileNamingStrategy) strategyClass.newInstance();
strategy.configure(strategyNode);
return strategy;
} catch (DOMException e) {
throw new RuntimeException(e);
} catch (ClassNotFoundException e) {
throw new RuntimeException(e);