Array-based loop can also be made more compact with:

```javascript
files.models.forEach(function(model) {
    var serviceId = model.getProjectData().getServiceId();
    ....
```