code: public ServiceType resolveServiceType()
      {
          ServiceType result = getServiceType();
          if (result != null) return result;
          return getServiceURL().getServiceType();
      }
docs: Resolves the service type of this service, returning the service type provided in the
  {@link #ServiceInfo(ServiceType, ServiceURL, String, Scopes, Attributes) constructor} if not null,
  otherwise the <code>ServiceType</code> of the <code>ServiceURL</code>.
  
  @return the service type of this service after resolution
  @see #getServiceType()
  @see #getServiceURL()