code: public static ActionImport getAndCheckActionImport(EntityDataModel entityDataModel, String actionImportName) {
          ActionImport actionImport = entityDataModel.getEntityContainer().getActionImport(actionImportName);
          if (actionImport == null) {
              throw new ODataSystemException("Action import not found in the entity data model: " + actionImportName);
          }
  
          return actionImport;
      }
docs: Gets the action import by the specified name, throw an exception if no action import with the specified name
  exists.
  
  @param entityDataModel  The entity data model.
  @param actionImportName The name of action import.
  @return The instance of action import.