/** * Gets the accessor order for this class by consulting {@link XmlAccessorOrder}. */ private XmlAccessOrder getAccessorOrder() { XmlAccessorOrder xao = getClassOrPackageAnnotation(XmlAccessorOrder.class); if(xao!=null) return xao.value(); else return XmlAccessOrder.UNDEFINED; }