---
title: "Generator: GetMatchingService"
source: https://dev.pageseeder.com/reference/advanced/website/berlioz/generators/org.weborganic.berlioz.generator.GetMatchingService.html
last_updated: 2026-08-07T17:09:54+10:00
tokens: ~355
---

# Generator: GetMatchingService

| Property | Value |
| --- | --- |
| Class name: | org.weborganic.berlioz.generator.GetMatchingService |
| Version: | Berlioz 0.9.3 - 9 December 2011 |
| Library: | Berlioz |
| Cacheable: | Yes |
| Generated: | 2012-12-21 |

## Description

Returns the current service configuration as XML.

This content generator is mostly useful for developers to see how the services are configured.

### Configuration

There is no configuration associated with this generator.

### Parameters

This generator does not use and require any parameter.

### Returned XML

This generator contains the `/WEB-INF/config/services.xml` used by Berlioz to load its services.

```xml

<services version="1.0"> ... </services>
```

The formatting of the XML might differ from the actual files, as it is parsed before being returned; the XML declaration and comments are stripped.

### Error handling

If there is any problem parsing or reading the file, the XML returned is:

```xml

<no-data error="[error]" details="[error-details]"/>
```

The error details are only shown if available.

### Usage

To use this generator in Berlioz (in `/WEB-INF/config/services.xml` ):

```xml

<generator class="org.weborganic.berlioz.generator.GetServices"
           name="[name]"
           target="[target]"/>
```

### Etag

This generator uses a weak etag based on the name, length and last modified date of the file.

