src/main/java/com/amazonaws/hal/client/ConversionUtil.java
private static Object convertFromNull(Type type) {
        if (!(type instanceof Class)) {
            return null;
        }

        Class<?> clazz = (Class) type;

        if (!clazz.isPrimitive()) {
            return null;
        }

        if (int.class.isAssignableFrom(clazz)) {
            return 0;
        } else if (long.class.isAssignableFrom(clazz)) {
            return 0L;
        } else if (short.class.isAssignableFrom(clazz)) {
            return 0;
        } else if (double.class.isAssignableFrom(clazz)) {
            return 0.0;
        } else if (float.class.isAssignableFrom(clazz)) {
            return 0.0F;
        } else if (boolean.class.isAssignableFrom(clazz)) {
            return Boolean.FALSE;
        } else if (char.class.isAssignableFrom(clazz)) {
            return 0;
        } else if (byte.class.isAssignableFrom(clazz)) {
            return 0;
        } else {
            throw new RuntimeException("Unexpected primitive type: " + clazz.getSimpleName());
        }
    }
private static Object convertFromNull(Type type) {
        if (!(type instanceof Class)) {
            return null;
        }

        Class<?> clazz = (Class) type;

        if (!clazz.isPrimitive()) {
            return null;
        }

        if (int.class.isAssignableFrom(clazz)) {
            return 0;
        } else if (long.class.isAssignableFrom(clazz)) {
            return 0L;
        } else if (short.class.isAssignableFrom(clazz)) {
            return 0;
        } else if (double.class.isAssignableFrom(clazz)) {
            return 0.0;
        } else if (float.class.isAssignableFrom(clazz)) {
            return 0.0F;
        } else if (boolean.class.isAssignableFrom(clazz)) {
            return Boolean.FALSE;
        } else if (char.class.isAssignableFrom(clazz)) {
            return 0;
        } else if (byte.class.isAssignableFrom(clazz)) {
            return 0;
        } else {
            throw new RuntimeException("Unexpected primitive type: " + clazz.getSimpleName());
        }
    }
-------------------------------------------------------------