CouchDb couchDb = CommandSupport.createCouchDb(gs, atlasProperties);
if( selectSkeletonDocuments ){
SkeletonDocumentsDetector docFinder = new SkeletonDocumentsDetector(couchDb,gs);
for(String docId : docFinder.getSkeletonDocIds()){
if( couchDb.documentExists(docId) ){
docIds.add(docId);
} else {
gs.getOutStream().println("Skeleton document "+docId+" has been removed from the database");
}
}