/* 14-Mar-2011, tatu: This is sub-optimal, as we really should use
* configured TypeFactory, not global one; but it should not cause
* issues here (issue would be that it will ignore module-provided additional
* type manging, most relevant for languages other than Java)
*/
TypeFactory typeFactory = TypeFactory.defaultInstance();
JavaType type = typeFactory.constructType(xmlAdapter.getClass());
JavaType[] rawTypes = typeFactory.findTypeParameters(type, XmlAdapter.class);
_valueType = (rawTypes == null || rawTypes.length == 0)
? TypeFactory.unknownType() : rawTypes[0];
}