} else if (value instanceof Date) {
Calendar cal = Calendar.getInstance();
cal.setTime((Date) value);
jcrValue = fac.createValue(cal);
} else if (value instanceof Boolean) {
jcrValue = fac.createValue(((Boolean) value).booleanValue());
} else if (value instanceof Double) {
jcrValue = fac.createValue(((Double) value).doubleValue());
} else if (value instanceof Long) {
jcrValue = fac.createValue(((Long) value).longValue());
} else if (value instanceof BigDecimal) {