if (part != null) {
editedCommand = new ServiceCommandManager(commands).createCommand(part.getDisplayName());
if (editedCommand != null) {
// External application location should never be null
ExternalApplication appInfo = new ExternalApplication();
appInfo.setExecutableNameAndPath(part.getExecutableLocation());
editedCommand.setExternalApplication(appInfo);
// Options and terminal may be optional
String optionsVal = part.getOptions();
if (optionsVal != null) {