code: @SuppressWarnings("unchecked")
  	protected final void deserialize(ObjectInputStream ois, Collection collection) throws IOException, ClassNotFoundException
  	{
  		int size = ois.readInt();
  		for (int i = 0; i < size; i++)
  		{
  			collection.add(ois.readObject());
  		}
  	}
docs: Deserialize a collection.
  <p>
  First read a <code>int</code> indicating of number of rest objects, then read the objects one by one.
  </p>
  
  @param ois
  the stream where the collection is read from
  @param collection
  the collection to hold read objects
  @throws IOException
  if I/O exception occurs
  @throws ClassNotFoundException
  if class of any read object is not found