try {
if(object == null || clazz == null || clazz.isPrimitive())
return null;
XmlType xmlType = clazz.getAnnotation(XmlType.class);
if(xmlType != null && xmlType.propOrder().length == 1 &&
xmlType.name().equals(xmlType.propOrder()[0]+"s")){
PropertyDescriptor[] props = getBeanProperties(clazz);
if(props.length == 1 &&
Collection.class.isAssignableFrom(props[0].getReadMethod().getReturnType())){
return props[0].getReadMethod().invoke(object, (Object[])null);