for (int i = 0; i < formParms.length; i++) {
Map<String, String> parm = (HashMap<String, String>) formParms[i];
for (Entry<String, String> entry : parm.entrySet()) {
String key = entry.getKey();
String value = entry.getValue();
opts[i] = new NVPair(key, value);
}
}
NVPair[] file;
file = new NVPair[fileParms.length];
for (int i = 0; i < fileParms.length; i++) {
Map<String, String> parm = (HashMap<String, String>) fileParms[i];
for (Entry<String, String> entry : parm.entrySet()) {
String key = entry.getKey();
String value = entry.getValue();
URL configFile = getContext().getResource(value);
file[i] = new NVPair(key, configFile.getFile());
}
}
try {
byte[] data = Codecs.mpFormDataEncode(opts, file, hdrs);