if (in == null) return true;
    public boolean isScalarType(Object in) {        Class type = in.getClass();        return simpleTypes.contains(type)            || Number.class.isAssignableFrom(type)            || String.class.isAssignableFrom(type)            || Boolean.class.isAssignableFrom(type)            || Date.class.isAssignableFrom(type);    }