62636465666768
String message = null; if (this.target == null) message = "target not specified"; if (this.outStream == null) message = "stream not specified"; if (message != null) throw new ServiceException(this, "Cannot initialize service, " + message + "."); }
7374757677787980
try { SavingProtocol_1_0 protocol = SavingProtocol_1_0.aspectOf(this); protocol.save(this.outStream, this.target); } catch (LoadSaveException e) { throw new ServiceException(this, "Unable to save project.", e); } }
67686970717273
String message = null; if (this.inStream == null) message = "stream not specified"; if (this.locationSolver == null) message = "no location solver specified"; if (message != null) throw new ServiceException(this, "Cannot initialize service, " + message + "."); }
7879808182838485
try { LoadingProtocol_1_0 protocol = LoadingProtocol_1_0.aspectOf(this); this.loadedResource = protocol.load(this.inStream, this.locationSolver); } catch (LoadSaveException e) { throw new ServiceException(this, "Unable to load resource.", e); } }