@Override
    public IList<E> doCreate(int capacity) {
    	if (capacity == -1) {
    		capacity = DEFAULT_CAPACITY;
    	}
    	return new GapList<E>(capacity);
    }
Deserialize a GapList object.

@param ois  input stream for serialization
@throws 	   IOException if serialization fails
@throws 	   ClassNotFoundException if serialization fails
jphp-runtime/src/php/runtime/memory/support/GapList.java