\r
BasicDBList jobParams = (BasicDBList) jobJSON.get("parameters");\r
if (jobParams != null) {\r
- for (int p = 0; p < jobParams.size(); p++) {\r
- BasicDBObject jsParam = (BasicDBObject) jobParams.get(p);\r
+ for (int i = 0; i < jobParams.size(); i++) {\r
+ BasicDBObject jsParam = (BasicDBObject) jobParams.get(i);\r
String n = jsParam.getString("name");\r
Object v = jsParam.get("value");\r
\r
private void loadTemplate(Path config) {\r
InputStream stream = null;\r
try {\r
- // byte[] xmlBytes = Files.readAllBytes(config);\r
- // String xml = new String(xmlBytes);\r
- // stream = new ByteArrayInputStream(xmlBytes);\r
stream = Files.newInputStream(config);\r
String fileName = config.getFileName().toString();\r
Parser parser = new Parser(stream);\r