public static Class getClass(String className) { Class cls = TypeUtil.instantiate(className); if (cls == null) { if ("Date".equals(className)) { cls = Date.class; } else { try { cls = Class.forName("java.lang." + className); } catch (Exception e) { } }
public static Class getClass(String className, Model model) { if ("InterMineObject".equals(className)) { className = "org.intermine.model.InterMineObject"; } else { className = model.getPackageName() + "." + className;
    public static Class getClass(String className) {        Class cls = TypeUtil.instantiate(className);        if (cls == null) {            if ("Date".equals(className)) {                cls = Date.class;            } else {                try {                    cls = Class.forName("java.lang." + className);                } catch (Exception e) {                }            }        }        return cls;    }