class RemoveDocumentSetTransformer {

    public EbXMLRemoveObjectsRequest toEbXML(RemoveDocumentSet request) {
        if (request == null) {
            return null;
        }

        EbXMLRemoveObjectsRequest ebXML = factory.createRemoveObjectsRequest();
        ebXML.setReferences(request.getReferences());
        ebXML.setDeletionScope(request.getDeletionScope());

        if (request.getQuery() != null){
            Query query = request.getQuery();
            query.accept(new ToEbXMLVisitor(ebXML));
        }

        return ebXML;
    }

    public  RemoveDocumentSetTransformer();

}