/** * Returns {@code true} if the value for the given entry is a primitive type. */ private static boolean isPrimitive(final Map.Entry<String,Object> entry) { return (entry instanceof ValueMap.Property) && ((ValueMap.Property) entry).getValueType().isPrimitive(); }