public Map<String,Object> makeValid(Map<String,? extends Object> source,String mode){
  return makeValid(source,mode,true,null);
}

public Map < String , Object > makeValid ( Map < String , ? extends Object > source , String mode ) { return makeValid ( source , mode , true , null ) ; }
creates a new map based from an existing map with just valid parameters . tries to convert parameters to required type .
