RemoteServerState (@NotNull RemoteServer<?> server) { RemoteServerState serverState = new RemoteServerState(); serverState.myName = server.getName(); serverState.myTypeId = server.getType().getId(); serverState.myConfiguration = XmlSerializer.serialize(server.getConfiguration().getSerializer().getState(), myDefaultValuesFilter); return serverState; }