code: public static ServiceInfo from(SrvReg srvReg)
      {
          return new ServiceInfo(srvReg.getServiceType(), srvReg.getURLEntry().toServiceURL(), srvReg.getLanguage(), srvReg.getScopes(), srvReg.getAttributes());
      }
docs: Creates a <code>ServiceInfo</code> from a SrvReg message.
  
  @param srvReg the SrvReg message to convert into a ServiceInfo
  @return a new ServiceInfo from the given message