Implemented iteration throw resource source in ResourceSample to process every resource
Implemented iterator in FSResourceSource
Added isValid method to Resource class