code: public boolean supports(ServiceProfile profile)
      {
          if (profile == null)
          {
              return false;
          }
  
          if (supportedServiceProfiles == null)
          {
              return false;
          }
  
          for (ServiceProfile supportedProfile : supportedServiceProfiles)
          {
              if (supportedProfile == profile)
              {
                  return true;
              }
          }
  
          return false;
      }
docs: Check if this service supports the specified profile.
  
  If {@code null} is given, {@code false} is returned.
  If the supported service profiles are not set to this service,
  {@code false} is returned.
  
  @param profile
  A service profile.
  
  @return
  {@code true} if this service supports the service profile.
  
  @since 2.12