* otherwise null
*/
public PJConverter getPJConverter(Class targetClass) {
if (Node.class.isAssignableFrom(targetClass) && !(NodeOverNodeInfo.class.isAssignableFrom(targetClass))) {
return new PJConverter() {
public Object convert(ValueRepresentation value, Class targetClass, XPathContext context) throws XPathException {
return convertXPathValueToObject(Value.asValue(value), targetClass, context);
}
};
} else if (NodeList.class == targetClass) {
return new PJConverter() {
public Object convert(ValueRepresentation value, Class targetClass, XPathContext context) throws XPathException {
return convertXPathValueToObject(Value.asValue(value), targetClass, context);
}
};
} else {