protected String[] getModelReference(String blockName) {
   String[] result;
   Object[] loadedSubSystems =
       matlab.returningFeval(
           1,
           "find_system",
           blockName,
           "SearchDepth",
           1,
           "BlockType",
           SimulinkBlockType.ModelReference.toString());
   if (loadedSubSystems.length == 1) {
     result = (String[]) loadedSubSystems[0];
   } else {
     result = new String[] {};
   }
   return result;
 }
  protected void convertModelReferences(String modelName, MontiArcStringBuilder builder) {
    String[] qualifiedModelReferences =
        (String[])
            matlab.returningFeval(
                "find_system",
                modelName,
                "SearchDepth",
                1,
                "BlockType",
                SimulinkBlockType.ModelReference.toString());

    if (qualifiedModelReferences != null) {
      for (int i = 0; i < qualifiedModelReferences.length; i++) {
        String qualifiedModelReference = qualifiedModelReferences[i];
        String unqualifiedModelReference = getSimpleName(qualifiedModelReference);
        String typeOfReferencedModel = getModelType(qualifiedModelReference);

        builder.createComponentReference(typeOfReferencedModel, unqualifiedModelReference);
      }
    }
  }