/** * This is a copy constructor for creating a clone of * another data context. The {@link #hasOwnProperties} * is always {@code false} for a cloned data context. * * @param dataContext the parent data context to clone from. */ public DataContext(DataContext dataContext) { this.data = dataContext.getData(); this.scope = dataContext.getScope(); this.index = dataContext.getIndex(); this.hasOwnProperties = false; }