public List<XFormsError.ServerError> getServerErrors() {
   return serverErrors != null ? serverErrors : Collections.<XFormsError.ServerError>emptyList();
 }
 public Set<String> getControlsStructuralChanges() {
   return controlsStructuralChanges != null
       ? controlsStructuralChanges
       : Collections.<String>emptySet();
 }
 /** Return the list of loads to send to the client, null if none. */
 public List<Load> getLoadsToRun() {
   if (loadsToRun != null) return loadsToRun;
   else return Collections.emptyList();
 }
 public List<Script> getScriptsToRun() {
   if (scriptsToRun != null) return scriptsToRun;
   else return Collections.emptyList();
 }
 public List<DelayedEvent> getDelayedEvents() {
   if (delayedEvents != null) return delayedEvents;
   else return Collections.emptyList();
 }
 /** Return the list of messages to send to the client, null if none. */
 public List<Message> getMessagesToRun() {
   if (messagesToRun != null) return messagesToRun;
   else return Collections.emptyList();
 }
 public Set<String> getPendingUploads() {
   if (pendingUploads == null) return Collections.emptySet();
   else return pendingUploads;
 }