} else if (type == String.class) {
toReturn = new StringValueCommand((String) value);
} else if (type.isArray()) {
ArrayValueCommand array = new ArrayValueCommand(type.getComponentType());
identityMap.put(value, array);
extractData(array, value);
toReturn = array;
} else if (value instanceof Enum<?>) {