}
Variable variable = getVariable(key);
// if there is already a variable instance and it doesn't support the current type...
if ( (variable!=null)
&& (!variable.supports(value))
) {
// delete the old variable instance
log.fine("variable type change. deleting '"+key+"' from '"+this+"'");
removeVariable(key);
variable = null;