code: public static List<RoboconfError> resolveErrorsWithLocation( ApplicationLoadResult alr ) {
  
  		List<RoboconfError> result = new ArrayList<> ();
  		for( RoboconfError error : alr.getLoadErrors()) {
  
  			RoboconfError errorToAdd = error;
  			if( error instanceof ModelError ) {
  				Object modelObject = ((ModelError) error).getModelObject();
  				SourceReference sr = alr.getObjectToSource().get( modelObject );
  				if( sr != null )
  					errorToAdd = new ParsingError( error.getErrorCode(), sr.getSourceFile(), sr.getLine(), error.getDetails());
  			}
  
  			result.add( errorToAdd );
  		}
  
  		return result;
  	}
docs: Resolves errors with their location when it is possible.
  <p>
  Parsing and conversion errors already have location information (file and line
  number). This is not the case of runtime errors (validation of the runtime model).
  However, these errors keep a reference to the object that contains the error.
  </p>
  <p>
  When we load an application from a file, we keep an association between a runtime model
  object and its location (file and line number). Therefore, we can resolve the location
  of runtime errors too (provided the model was loaded from a file).
  </p>
  <p>
  So, this method replaces (runtime) model errors by errors that contain location data.
  </p>
  
  @param alr the result of an application load operation
  @return a non-null list of errors