protected Object instantiate(Class clazz)
{
ClassInfoImpl result;
if (clazz.isInterface())
result = new InterfaceInfoImpl(clazz.getName());
else
result = new ClassInfoImpl(clazz.getName());
result.setType(clazz);
result.setTypeInfoFactory(this);
return result;