if (target == null) {
return Collections.emptyMap();
}
Map<String, Accessor> map = new HashMap<String, Accessor>();
Class<?> type = target.getClass();
RuntimeTypeInfoSet set = create(type);
RuntimeClassInfo clsInfo = (RuntimeClassInfo)set.getTypeInfo(type);
for (RuntimePropertyInfo f : clsInfo.getProperties()) {
map.put(f.getName(), new JAXBAccessor(target, f));
}
return map;
}