Ows10Factory owsf = Ows10Factory.eINSTANCE;
CapabilitiesType caps = cswf.createCapabilitiesType();
OperationsMetadataType om = owsf.createOperationsMetadataType();
caps.setOperationsMetadata(om);
final String rimNamespace = "urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0";
om.setExtendedCapabilities(new EncoderDelegate() {
@Override
public void encode(ContentHandler output) throws Exception {
AttributesImpl atts = new AttributesImpl();
output.startPrefixMapping("rim", rimNamespace);