public static void marshallServices(final Services services, final File file)
throws JiBXException, IOException {
final Writer writer = new FileWriter(file);
final IBindingFactory factory =
BindingDirectory.getFactory(Services.class);
final IMarshallingContext context = factory.createMarshallingContext();
context.setIndent(INDENT);
context.setOutput(writer);
context.marshalDocument(services, ENCODING, null);
}