(IStatus.ERROR,
ICheatSheetResource.CHEAT_SHEET_PLUGIN_ID, 0,
Messages.ERROR_COMMAND_SERVICE_UNAVAILABLE, null);
}
ParameterizedCommand selectedCommand;
Object result;
String rawSerialization = command.getSerialization();
try {
String substitutedSerialization = csm.performVariableSubstitution(rawSerialization);
selectedCommand = commandService.deserialize(substitutedSerialization);
IEvaluationContext state = handlerService.getCurrentState();
result = selectedCommand.executeWithChecks(null, state);
String returnsAttribute = command.getReturns();
if ((returnsAttribute != null) && (result != null)) {
ParameterType returnType = selectedCommand.getCommand().getReturnType();
if ((returnType != null && (returnType.getValueConverter() != null))) {
String resultString = returnType.getValueConverter().convertToString(result);
csm.setDataQualified(returnsAttribute, resultString);
}
else {