code: private ResourceRef resolvePath(ConstraintViolation<?> violation) {
  		Object resource = violation.getRootBean();
  
  		Object nodeObject = resource;
  		ResourceRef ref = new ResourceRef(resource);
  
  		Iterator<Node> iterator = violation.getPropertyPath().iterator();
  		while (iterator.hasNext()) {
  			Node node = iterator.next();
  
  			// ignore methods/parameters
  			if (node.getKind() == ElementKind.METHOD) {
  				continue;
  			}
  			if (node.getKind() == ElementKind.PARAMETER) {
  				resource = getParameterValue(node);
  				nodeObject = resource;
  				ref = new ResourceRef(resource);
  				assertResource(resource);
  				continue;
  			}
  
  			// visit list, set, map references
  			nodeObject = ref.getNodeReference(nodeObject, node);
  			ref.visitNode(nodeObject);
  
  			// visit property
  			nodeObject = ref.visitProperty(nodeObject, node);
  		}
  
  		return ref;
  	}
docs: Translate validated bean and root path into validated resource and
  resource path. For example, embeddables belonging to an entity document
  are mapped back to an entity violation and a proper path to the
  embeddable attribute.
  
  @param violation to compute the reference
  @return computaed reference