if (is == null) {
throw new FileNotFoundException(config + "文件不存在!");
}
JsonReader jr = new JsonReader(new InputStreamReader(is));
JDomain jDomain = GSON.fromJson(jr, JDomain.class);
Domain domain = new Domain();
domain.setCode(domainCode);
domain.setName(jDomain.getName());
List<Biz> bizs = new ArrayList<Biz>(jDomain.getBizs().size());
for (String bizCode : jDomain.getBizs()) {
Biz biz = loadBizConfig(bizCode);
bizs.add(biz);
}
domain.setBizs(bizs);
return domain;
}