String optionsVal = part.getOptions();
if (optionsVal != null) {
optionsVal = optionsVal.trim();
}
if (optionsVal != null && optionsVal.length() > 0) {
CommandOptions options = new CommandOptions();
options.setOptions(optionsVal);
editedCommand.setOptions(options);
}
else {
editedCommand.setOptions(null);
}