if(reg instanceof ClassRegistrar) {
ClassRegistrar r = (ClassRegistrar)reg;
part = r.getRegisteredClass().getName();
}
else if(reg instanceof ReflectingRegistrar) {
ReflectingRegistrar r = (ReflectingRegistrar)reg;
part = r.getRegisteredClass().getName() + "," + r.getSerializerClass().getName();
}
else if(reg instanceof ReflectingDefaultRegistrar) {
ReflectingDefaultRegistrar r = (ReflectingDefaultRegistrar)reg;
part = r.getRegisteredClass().getName() + "," + r.getSerializerClass().getName();
}
else {
throw new ConfigurationException("Unknown type of reflecting registrar: " + reg.getClass().getName());
}
builder.append(part);