private void injectArray(Object instance, Property prop, ContextualPropertyResolver resolver) throws Exception {
Class<?> componentType = property.getArrayOrCollectionComponentType();
if (componentType.isArray()) {
String message = String.format("Multi-dimensional array property %s is not supported. Only single-dimensional arrays are supported",
property.getName());
throw new ConfigException(prop, instance.getClass(), message, null);
}
Object array = property.getValue(instance);
if (array == null) {
array = Array.newInstance(componentType, prop.getValues().size());