final String className = element.getAttribute("class");
if (className != null) {
try {
final ClassLoader cl = Thread.currentThread().getContextClassLoader();
final Object obj = cl.loadClass(className).newInstance();
final PartitionTableType type = (PartitionTableType) obj;
types.put(type.getName(), type);
} catch (ClassCastException ex) {
log.error("PartitionTableType " + className +
" does not implement PartitionTableType.");
} catch (ClassNotFoundException ex) {
log.error("Cannot load PartitionTableType " + className);