@SuppressWarnings("rawtypes")
Collection newCollection = (Collection<?>)getNewInstance(clazz);
//create an object for each element
if (itemClass.equals(Object.class)) {
//Object[]
newCollection.addAll(values);
if(traceEnabled)
traceLog.warn(String.format("Unparameterazed list with object type found. accessor: \"%s\" class: %s",
accessor.getName(),accessor.getDeclaringClass()));
} else if (isJSONPrimitive(itemClass)) {
//primitive array