private static boolean isLeafPropertyType(final Class<?> type) {

        boolean isLeaf = type.equals(String.class) ||
                         type.equals(Byte.class) ||
                         type.equals(byte.class) ||
                         type.equals(Integer.class) ||
                         type.equals(int.class) ||
                         type.equals(Long.class) ||
                         type.equals(long.class) ||
                         type.equals(Short.class) ||
                         type.equals(short.class) ||
                         type.equals(Float.class) ||
                         type.equals(float.class) ||
                         type.equals(Double.class) ||
                         type.equals(double.class) ||
                         type.equals(Boolean.class) ||
                         type.equals(boolean.class) ||
                         type.equals(Character.class) ||
                         type.equals(char.class) ||

                         DocRef.class.isAssignableFrom(type) ||
                         Enum.class.isAssignableFrom(type) ||
                         Path.class.isAssignableFrom(type) ||
                         StroomDuration.class.isAssignableFrom(type) ||
                         ByteSize.class.isAssignableFrom(type) ||
                         Date.class.isAssignableFrom(type) ||
                         Instant.class.isAssignableFrom(type) ||
                         (type.isArray() &&
                          (type.getComponentType().equals(Byte.class) ||
                           type.getComponentType().equals(byte.class) ||
                           type.getComponentType().equals(Character.class) ||
                           type.getComponentType().equals(char.class)));

        LOGGER.trace("isLeafPropertyType({}), returning: {}", type, isLeaf);
        return isLeaf;
    }
Create {@link Data} items from properties of the supplied POJO

@param obj POJO from which to extract properties
@return List of {@link Data} items representing properties of the supplied POJO
stroom-event-logging/stroom-event-logging-impl/src/main/java/stroom/event/logging/impl/StroomEventLoggingServiceImpl.java