/* */ }
/* */
/* 152 */ return obj;
/* */ }
/* */
/* 155 */ Advised advised = (Advised)obj;
/* 156 */ SimpleMetaData metaData = advised._getInstanceAdvisor().getMetaData();
/* */ GUID guid;
/* 158 */ synchronized (metaData)
/* */ {
/* 160 */ if (isVersioned(advised)) return obj;
/* 161 */ guid = tag(advised);
/* */ }
/* 163 */ System.out.println("VersionManager: " + guid);
/* 164 */ DistributedPOJOState manager = new DistributedPOJOState(guid, this.timeout, advised, this, this.synchManager);
/* 165 */ StateManager.setStateManager(advised, manager);
/* 166 */ StateChangeInterceptor interceptor = new StateChangeInterceptor(manager);
/* 167 */ manager.acquireWriteLock();
/* 168 */ advised._getInstanceAdvisor().appendInterceptor(interceptor);
/* */ try
/* */ {
/* 171 */ Field[] advisedFields = ((ClassAdvisor)advised._getAdvisor()).getAdvisedFields();
/* 172 */ for (int i = 0; i < advisedFields.length; i++)
/* */ {
/* 174 */ Field field = advisedFields[i];
/* 175 */ if (!Modifier.isStatic(field.getModifiers())) {
/* 176 */ Object fieldVal = field.get(advised);
/* 177 */ if (fieldVal != null)
/* */ {
/* 179 */ if ((fieldVal instanceof Advised))
/* */ {
/* 181 */ Advised fieldAdvised = (Advised)fieldVal;
/* 182 */ makeVersioned(fieldAdvised, newObjects);
/* 183 */ fieldVal = new VersionReference(getGUID(fieldAdvised), fieldAdvised);
/* */ }
/* 185 */ else if ((fieldVal instanceof List))
/* */ {