code: public ServingCheckData isServingService(MAPApplicationContext dialogApplicationContext) {
  
          int vers = dialogApplicationContext.getApplicationContextVersion().getVersion();
  
          switch (dialogApplicationContext.getApplicationContextName()) {
              case locationSvcEnquiryContext:
              case locationSvcGatewayContext:
                  if (vers == 3) {
                      return new ServingCheckDataImpl(ServingCheckResult.AC_Serving);
                  } else if (vers > 3) {
                      long[] altOid = dialogApplicationContext.getOID();
                      altOid[7] = 3;
                      ApplicationContextName alt = TcapFactory.createApplicationContextName(altOid);
                      return new ServingCheckDataImpl(ServingCheckResult.AC_VersionIncorrect, alt);
                  } else {
                      return new ServingCheckDataImpl(ServingCheckResult.AC_VersionIncorrect);
                  }
          }
  
          return new ServingCheckDataImpl(ServingCheckResult.AC_NotServing);
      }
docs: /*
  (non-Javadoc)
  
  @see org.restcomm.protocols.ss7.map.api.MAPServiceBase#isServingService(org
  .mobicents.protocols.ss7.map.api.MAPApplicationContext)