public Subscription subscribe(EndpointReferenceType consumer, String topic,
String xpath, boolean raw) throws JBIException {
Subscribe subscribeRequest = new Subscribe();
subscribeRequest.setConsumerReference(consumer);
subscribeRequest.setFilter(new FilterType());
if (topic != null) {
TopicExpressionType topicExp = new TopicExpressionType();
topicExp.getContent().add(topic);
subscribeRequest.getFilter().getAny().add(
new JAXBElement<TopicExpressionType>(AbstractSubscription.QNAME_TOPIC_EXPRESSION,