InstanceStats stats = ((InstanceStatsAndInfo) instanceObject).getStats();
if (stats != null) {
try {
CloudFoundryApplicationModule appModule = getExistingApplication();
manager.add(new ShowConsoleEditorAction(cloudServer, appModule, Integer.parseInt(stats.getId())));
}
catch (CoreException ce) {
logApplicationModuleFailureError(Messages.ApplicationDetailsPart_ERROR_GENERATE_APP_INSTANCE_CONTEXT_MENU);
}
catch (NumberFormatException e) {