}
@Override
public boolean run() {
ChainControl control = getChainData();
Map<String, Object> properties = control.getChainProperties();
for(Entry<String, Object> entry : properties.entrySet()) {
System.out.println(entry.getKey() + " = " + entry.getValue() + "\\n");
}
String returnError = (String) control.getChainProperty("returnError");
String throwException = (String) control.getChainProperty("returnError");
if(Boolean.parseBoolean(throwException)) {
throw new RuntimeException ("I had to fail");
}
return Boolean.parseBoolean(returnError);