code: private synchronized void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
          ois.defaultReadObject();
  
          int svcsSize = ois.readInt();
          for (int i = 0; i < svcsSize; i++) {
              _serviceProviders.put((Class) ois.readObject(), (ServiceProvider) ois.readObject());
          }
  
          int listenersSize = ois.readInt();
          for (int i = 0; i < listenersSize; i++) {
              _bcsListeners.add((BeanContextServicesListener) ois.readObject());
          }
      }
docs: Deserialization support.
  
  @param ois
  @throws IOException
  @throws ClassNotFoundException