1st:?? mappings.setDefaultLazy(dlNode == null || dlNode.getValue().equals("true"));
2ed: mappings.setAutoImport((aiNode == null) ? true : "true".equals(aiNode.getValue()));
the first is seems a bit more effective than the second but less readable ,hence we choose the second!
bad?programmer write code readed by machine and by contraries good programmer write code readed by human!