code: public static <T> ServiceController<T> getService(ServiceRegistry registry, ServiceName name) {
          return (ServiceController<T>) registry.getRequiredService(name);
      }
docs: Generics friendly version of {@link ServiceRegistry#getRequiredService(ServiceName)}
  @param registry service registry
  @param name service name
  @return the service controller with the specified name
  @throws org.jboss.msc.ServiceNotFoundException if the service was not found