Add downloading method in the allocater and an InvalidParameterException