src/main/java/de/tub/benchmarkscheduler/service/SampleDataServiceImpl.java
/**
     * Creates an Update Querey without null fields
     * @param document
     * @return update
     */
Creates an Update Querey without null fields
@param document
@return update
Creates an Update Querey without null fields @param document @return update
private static Update fromDocumentExcludeNullFields(Document document) {
        Update update = new Update();
        for (String key : document.keySet()) {
            Object value = document.get(key);
            if(value!=null){
                update.set(key, value);
            }
        }
        return update;
    }
private static Update fromDocumentExcludeNullFields ( Document document ) { Update update = new Update ( ) ; for ( String key : document . keySet ( ) ) { Object value = document . get ( key ) ; if ( value != null ) { update . set ( key , value ) ; } } return update ; }
Creates an Update Querey without null fields
 @param document
 @return update
Creates an Update Querey without null fields @param document @return update