public static OptionPanelWindowConfigurationStorage decorateDialog( final String marshalled, final JDialog dialog) { final OptionPanelWindowConfigurationStorage storage = new OptionPanelWindowConfigurationStorage(); final XMLElement xml = storage.unmarschall(marshalled, dialog); if (xml != null) { storage.panel = xml.getAttribute("panel", null); return storage; } return null; }