@Override
public D getDef(DefDescriptor<D> descriptor) throws QuickFixException {
Source<?> source = sourceFactory.getSource(descriptor);
if (source != null && source.exists()) {
Parser parser = ParserFactory.getParser(source.getFormat());
D def = parser.parse(descriptor, source);
// def.validateDefinition();
return def;
}
return null;