public static boolean postMeta(SwiftClientCfg cfg, String container, String object, Map<String, String> metas) { Script command = new Script("/bin/bash", logger); command.add("-c"); command.add(getSwiftObjectCmd(cfg, getSwiftCLIPath(),"post", container, object) + getMeta(metas)); OutputInterpreter.OneLineParser parser = new OutputInterpreter.OneLineParser(); String result = command.execute(parser); if (result != null) { throw new CloudRuntimeException("Failed to post meta" + result); } return true; }