code: @Override
    public ServiceRefAmp toRef(Object serviceImpl)
    {
      if (serviceImpl instanceof ProxyHandleAmp) {
        ProxyHandleAmp proxy = (ProxyHandleAmp) serviceImpl;
        
        return proxy.__caucho_getServiceRef();
      }
      
      Objects.requireNonNull(serviceImpl);
      
      return new ServiceBuilderImpl<>(this, serviceImpl).ref();
    }
docs: newService() creates a new service from a bean