protected void hydrateBasic(MutableService descriptor, Service undescribedService) {
   descriptor.serviceId = undescribedService.getServiceId();
   descriptor.serviceType = undescribedService.getServiceType();
   if (undescribedService instanceof RemoteService) {
     RemoteService rs = (RemoteService) undescribedService;
     descriptor.controlURI = rs.getControlURI();
     descriptor.eventSubscriptionURI = rs.getEventSubscriptionURI();
     descriptor.descriptorURI = rs.getDescriptorURI();
   }
 }
 protected <S extends Service> S buildInstance(S undescribedService, MutableService descriptor)
     throws ValidationException {
   return (S) descriptor.build(undescribedService.getDevice());
 }