WSUtils utils = WSUtils.getINSTANCE();
int size = utils.getArraySize(cols);
TimeMachineColumn[] result = new TimeMachineColumn[size];
for (int index = 0; index < size; index++) {
Object colJson = utils.getArrayElement(cols, index);
result[index] = new TimeMachineColumn(index, utils.getString(colJson, "metric"), null, null);
}
return result;
}