The IMAFModelService service API can be used to access the instances of the local workspace.
It also includes a method which can be used to obtain the list of the problems related to an entity model.