String (MavenWorkspaceSettingsComponent workspaceSettingsComponent) { try { MavenWorkspaceSettings workspaceSettings = workspaceSettingsComponent.getState(); JdomSerializer jdomSerializer = XmlSerializer.getJdomSerializer(); SkipDefaultsSerializationFilter serializationFilter = jdomSerializer.getDefaultSerializationFilter(); Element workspaceSettingsElement = jdomSerializer.serialize(workspaceSettings, serializationFilter, true); return new XMLOutputter().outputString(workspaceSettingsElement); } catch (Exception e) { throw new RuntimeException(e); } }