373839404142434445
Editor editor = pageLocator.findOpenPage(item); if (editor != null) { try { editor.save(); } catch (SaveEditorException ex) { throw new DeployException("Failed to save the current changes made to " + item.getName(), ex); } } }