}
protected void initBindingMetadata()
{
final Value<?> property = (Value<?>) property();
final ValueProperty pdef = property.definition();
final XmlNamespaceResolver xmlNamespaceResolver = resource().getXmlNamespaceResolver();
final XmlBinding genericBindingAnnotation = pdef.getAnnotation( XmlBinding.class );
if( genericBindingAnnotation != null )
{
this.path = new XmlPath( genericBindingAnnotation.path(), xmlNamespaceResolver );
this.removeNodeOnSetIfNull = true;
}
else
{
final XmlValueBinding bindingAnnotation = pdef.getAnnotation( XmlValueBinding.class );
if( bindingAnnotation != null )
{
this.path = new XmlPath( bindingAnnotation.path(), xmlNamespaceResolver );
this.removeNodeOnSetIfNull = bindingAnnotation.removeNodeOnSetIfNull();