if(values == null) {
return;
}
if(values instanceof Collection<?>){
int removed = 0;
for(Iterator<Text> it = new TextIterator(valueFactory,
((Collection<Object>)values).iterator(),
languages);it.hasNext();){
it.next();//go to the next Element
it.remove(); //and remove ist
removed++;
}
if(removed>0){ //if some elements where removed
//check if there is only a singe or no elements left for the field
int size = ((Collection<Object>)values).size();