code: public CMAEnvironmentStatus getStatus() {
      final CMALink link = system.getEnvironmentalStatus();
      if (link == null) {
        return null;
      }
  
      final String id = link.getId().toLowerCase();
  
      for (final CMAEnvironmentStatus status : CMAEnvironmentStatus.values()) {
        final String statusName = status.name().toLowerCase();
        if (statusName.equals(id)) {
          return status;
        }
      }
  
      return null;
    }
docs: Return the state of this environment
  
  @return one of {@link CMAEnvironmentStatus} to indicate the status of the environment.