src/main/java/com/billybyte/mongo/MongoXml.java
public void multiUpsert(Map<String,T> upMap){
		Map<String,T> existingMap = findFromSet(upMap.keySet());
		Set<String> existingSet = existingMap.keySet();
		for(Entry<String,T> entry:upMap.entrySet()){
			if(existingSet.contains(entry.getKey())){
				updateSingleEntry(entry.getKey(), entry.getValue());
			} else {
				insertSingleEntry(entry.getKey(), entry.getValue());
			}
		}
	}
/**
	 * Upsert but for multiple documents
	 * @param upMap
	 */
Upsert but for multiple documents
@param upMap
Upsert but for multiple documents @param upMap
public void multiUpsert(Map<String,T> upMap){
		Map<String,T> existingMap = findFromSet(upMap.keySet());
		Set<String> existingSet = existingMap.keySet();
		for(Entry<String,T> entry:upMap.entrySet()){
			if(existingSet.contains(entry.getKey())){
				updateSingleEntry(entry.getKey(), entry.getValue());
			} else {
				insertSingleEntry(entry.getKey(), entry.getValue());
			}
		}
	}
public void multiUpsert ( Map < String , T > upMap ) { Map < String , T > existingMap = findFromSet ( upMap . keySet ( ) ) ; Set < String > existingSet = existingMap . keySet ( ) ; for ( Entry < String , T > entry : upMap . entrySet ( ) ) { if ( existingSet . contains ( entry . getKey ( ) ) ) { updateSingleEntry ( entry . getKey ( ) , entry . getValue ( ) ) ; } else { insertSingleEntry ( entry . getKey ( ) , entry . getValue ( ) ) ; } } }
Upsert but for multiple documents
 @param upMap
Upsert but for multiple documents @param upMap