Content content = (Content) annotation;
final PojoMarshaler marshaller = newInstance(content);
return createContentExpression(marshaller);
} else if (annotation instanceof XPath) {
XPath xpathAnnotation = (XPath) annotation;
JAXPStringXPathExpression expr = new JAXPStringXPathExpression(xpathAnnotation.xpath());
if (!xpathAnnotation.prefix().equals("") && !xpathAnnotation.uri().equals("")) {
DefaultNamespaceContext ctx = new DefaultNamespaceContext();
ctx.add(xpathAnnotation.prefix(), xpathAnnotation.uri());
expr.setNamespaceContext(ctx);
}
return expr;
}
return null;
}