protected TapSchemaDAO getTapSchemaDAO() { return new TapSchemaDAO(); }
public TapSchemaDAO getTapSchemaDAO() { final TapSchemaDAO ret; String name = TapSchemaDAO.class.getName(); String cname = config.getProperty(name); if (cname == null) { ret = new TapSchemaDAO(); } else { try { Class c = Class.forName(cname); ret = (TapSchemaDAO) c.newInstance(); } catch (Throwable ex) { throw new RuntimeException("config error: failed to create TapSchemaDAO " + cname, ex); } } return ret; } }