code: public Notification[] readNotifications(InputStream in) throws ConversionException, IOException, ClassNotFoundException {
          final NotificationRecord[] records = readNotificationRecords(in);
          final Notification[] ret = new Notification[records.length];
          for (int i = 0; i < records.length; ++i) {
              ret[i] = records[i].getNotification();
          }
          return ret;
      }
docs: Decode a JSON document to retrieve an array of Notification instances.
  
  @param in The stream to read JSON from
  @return The decoded Notification array
  @throws ConversionException If JSON uses unexpected structure/format
  @throws IOException If an I/O error occurs or if JSON is ill-formed.
  @throws ClassNotFoundException If needed class can't be found.
  @see #writeNotifications(OutputStream, Notification[])