WrappedMap wrapped = FindAnnotation.findAnnotation(annotations, WrappedMap.class);
if (wrapped != null)
{
if (!wrapped.map().equals(ele.getName().getLocalPart()))
{
throw new JAXBUnmarshalException("Map wrapping failed, expected root element name of " + wrapped.map() + " got " + ele.getName().getLocalPart());
}
if (!wrapped.namespace().equals(ele.getName().getNamespaceURI()))
{
throw new JAXBUnmarshalException("Map wrapping failed, expect namespace of " + wrapped.namespace() + " got " + ele.getName().getNamespaceURI());
}