HarvestedResource resource = HarvestedResource.getResourceFromObject(source);
// Check if the source object can be accepted
final List<HarvestedSource> result = new ArrayList<HarvestedSource>();
if (resource == null) {
result.add(new DefaultHarvestedSource(source, false, "Unrecognized source type"));
return result;
} else if (source instanceof File && !((File) source).exists() || singleFileList(source)) {
result.add(new DefaultHarvestedSource(source, false,
"Specified file path does not exist"));
return result;
}
// Harvesting of the input source
resource.harvest(defaultCoverage, source, hints, result, this);