* objects based JAXB, XStream or other similar frameworks.
*/
@Deprecated
public void decodeFromXML(XMLDecoder decoder) {
Injector injector = CayenneRuntime.getThreadInjector();
if (injector == null) {
throw new IllegalStateException("Can't perform deserialization - "
+ "no Injector bound to the current thread.");
}
EntityResolver resolver = injector
.getInstance(DataChannel.class)
.getEntityResolver();
ObjEntity objectEntity = resolver.lookupObjEntity(getClass());
for (final ObjAttribute att : objectEntity.getDeclaredAttributes()) {