readerJobConf.setPluginName(readerName);
readerJobConf.setId(readerId == null ? "reader-id-" + readerName
: readerId.trim());
Map<String, String> readerPluginParamMap = getParamMap(readerE);
IParam readerPluginParam = new DefaultParam(readerPluginParamMap);
readerJobConf.setPluginParam(readerPluginParam);
List<JobPluginConf> writerJobConfs = new ArrayList<JobPluginConf>();
List<Element> writerEs = (List<Element>) document.selectNodes(xpath
+ "/writer");
for (Element writerE : writerEs) {
JobPluginConf writerPluginConf = new JobPluginConf();
Element writerPluginE = (Element) writerE
.selectSingleNode("plugin");
String writerName = writerPluginE.getStringValue().trim()
.toLowerCase();
String writerId = writerE.attributeValue("id");
writerPluginConf.setPluginName(writerName);
writerPluginConf.setId(writerId == null ? "writer-id-"
+ writerEs.indexOf(writerE) + "-" + writerName : writerId
.trim());
Map<String, String> writerPluginParamMap = getParamMap(writerE);
IParam writerPluginParam = new DefaultParam(writerPluginParamMap);
writerPluginConf.setPluginParam(writerPluginParam);
writerJobConfs.add(writerPluginConf);
}