help = "The path to dump the output to.") String outputTo) throws IOException {
fromDir = contextCmds.evalAsString(fromDir);
final String outputPath = contextCmds.evalAsString(outputTo);
UriComponentsBuilder ucb = createUriComponentsBuilder(path.getPath());
if (null != params) {
for (Object key : params.keySet()) {
Object o = params.get(key);
ucb.queryParam(key.toString(), encode(o.toString()));
}
}
requestUri = ucb.build().toUri();
Object obj = null;
if (null != data) {
if (data.contains("#{")) {
obj = contextCmds.eval(data);