throws BindingException {
if (!Integer.class.isAssignableFrom(node.getType())
&& !int.class.isAssignableFrom(node.getType())) {
StringBuilder builder = new StringBuilder();
node.document(new StringBuilderDocument(builder));
throw new BindingException("Reference " + builder.toString()
+ " does not resolve to integer.");
} else {
return (Node<Integer, E>) node;
}
}