@HandlerInput(name="RemoveProps", type=ArrayList.class)})
public static void saveTransactionServiceSettings(HandlerContext handlerCtx) {
ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
TransactionServiceConfig tConfig = config.getTransactionServiceConfig();
ArrayList removeProps = (ArrayList)handlerCtx.getInputValue("RemoveProps");
Map addProps = (Map)handlerCtx.getInputValue("AddProps");
String[] remove = (String[])removeProps.toArray(new String[ removeProps.size()]);
for(int i=0; i<remove.length; i++){
tConfig.removeProperty(remove[i]);
}
if(addProps != null ){
Iterator additer = addProps.keySet().iterator();
while(additer.hasNext()){
Object key = additer.next();
String addvalue = (String)addProps.get(key);
tConfig.setPropertyValue((String)key, addvalue);
}
}
tConfig.setAutomaticRecovery(((Boolean)handlerCtx.getInputValue("OnRestart")).booleanValue());
tConfig.setTimeoutInSeconds(((String)handlerCtx.getInputValue("Timeout")));
tConfig.setRetryTimeoutInSeconds(((String)handlerCtx.getInputValue("Retry")));
tConfig.setTxLogDir(((String)handlerCtx.getInputValue("LogLocation")));
tConfig.setHeuristicDecision(((String)handlerCtx.getInputValue("Heuristic")));
tConfig.setKeypointInterval(((String)handlerCtx.getInputValue("KeyPoint")));
}