String className = cld.getClassOfObject().getName(); try { Method m = DomainAllocator.class.getMethod("allocate_" + className.replace('.', '_')); if (m != null) {  cld.setFactoryClass(DomainAllocator.class); cld.setFactoryMethod(m.getName()); } } catch (Exception e) { System.out.println("FenixRowReader: NOT setting factoryMethod for class " + className + " because " + e); }
    public FenixRowReader(ClassDescriptor cld) {        super(cld);        String className = cld.getClassOfObject().getName();        try {            Method m = DomainAllocator.class.getMethod("allocate_" + className.replace('.', '_'));            if (m != null) {                //System.out.println("FenixRowReader: setting factoryMethod for class " + className + " to " + m.getName());                cld.setFactoryClass(DomainAllocator.class);                cld.setFactoryMethod(m.getName());            }        } catch (Exception e) {            System.out.println("FenixRowReader: NOT setting factoryMethod for class " + className + " because " + e);        }    }