}
public void execute(FlowContext flowContext) throws TuboException {
//
// get item
Item item = flowContext.getItem();
//
// get input
String input = (String)item.getProperty(ECHO_INPUT_PROPERTY);
//
// trim input
input = input.trim();
//
// check command
if (HELP_CMD.equals(input))
item.setProperty(ECHO_OUTPUT_PROPERTY, HELP_MSG);
else if (SHUTDOWN_CMD.equals(input)) {
getResourceManager().getKernel().shutdown();
item.setProperty(ECHO_OUTPUT_PROPERTY, "");
}
else
if ("".equals(input) || "\n".equals(input) || "\r".equals(input))
item.setProperty(ECHO_OUTPUT_PROPERTY, null);
else
item.setProperty(ECHO_OUTPUT_PROPERTY, CMDNOTFOUND_MSG);
}