catch (Exception e) {
rp.setResponse(new ResponseObject("Test Source",false,"Error deserializing source (JSON is valid but does not match schema): " + e.getMessage()));
return rp;
}
if (null == source.getKey()) {
source.setKey(source.generateSourceKey()); // (a dummy value, not guaranteed to be unique)
}
if ((null == source.getExtractType()) || !source.getExtractType().equals("Federated")) {
String testUrl = source.getRepresentativeUrl();
if (null == testUrl) {
rp.setResponse(new ResponseObject("Test Source",false,"Error, source contains no URL to harvest"));