return parsedCmpField;
}
private static JDBCEntityCommandMetaData parseEntityCommand(final XMLStreamReader reader, final ClassLoader classLoader) throws XMLStreamException {
final JDBCEntityCommandMetaData metaData = new JDBCEntityCommandMetaData();
final int count = reader.getAttributeCount();
for (int i = 0; i < count; i++) {
final Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i));
switch (attribute) {
case NAME: {
metaData.setName(reader.getAttributeValue(i));
break;
}
case CLASS: {
final String command = reader.getAttributeValue(i);
try {
metaData.setClass(classLoader.loadClass(command));
} catch (ClassNotFoundException e) {
throw MESSAGES.failedToLoadEntityCommand(command, e);
}
break;
}