deploymentId = i.deploymentInfo.getDeploymentID();
primaryKey = i.primaryKey;
if (i.bean instanceof Serializable) {
bean = i.bean;
} else {
bean = new PojoSerialization(i.bean);
}
interceptors = new HashMap(i.interceptors.size());
for (Map.Entry<String, Object> e : i.interceptors.entrySet()) {
if (e.getValue() == i.bean) {
// need to use the same wrapped reference or well get two copies.
interceptors.put(e.getKey(), bean);
} else if (!(e.getValue() instanceof Serializable)) {
interceptors.put(e.getKey(), new PojoSerialization(e.getValue()));
}
}
if (i.entityManagerArray != null) {
entityManagerArray = i.entityManagerArray;