}
public Value transform(Object source, TransformationContext context) {
Value result = null;
if (source instanceof Integer) {
result = new IntegerValue((Integer)source);
} else if (source instanceof Long) {
result = new IntegerValue((Long)source);
} else if (source instanceof Short) {
result = new IntegerValue((Short)source);
} else if (source instanceof Byte) {
result = new IntegerValue((Byte)source);
} else if (source instanceof Double) {
result = new DoubleValue((Double)source);
} else if (source instanceof Float) {
result = new FloatValue((Float)source);
} else if (source instanceof BigDecimal) {