} else if (primitiveData instanceof BooleanData) {
return new BooleanNode(primitiveData.booleanValue());
} else if (primitiveData instanceof IntegerData) {
return new IntegerNode(primitiveData.integerValue());
} else if (primitiveData instanceof FloatData) {
return new FloatNode(primitiveData.floatValue());
} else if (primitiveData instanceof NullData) {
return new NullNode();
} else {
throw new IllegalArgumentException();
}