private void insertLevelHandle(LevelHandle levelHandle, int pos) throws SemanticException { CrosstabReportItemHandle reportHandle = viewHandle.getCrosstab(); // int viewCount = viewHandle.getLevelCount( ); DataItemHandle dataHandle = CrosstabAdaptUtil.createColumnBindingAndDataItem( (ExtendedItemHandle) reportHandle.getModelHandle(), levelHandle); LevelViewHandle levelViewHandle = viewHandle.insertLevel(levelHandle, pos); CrosstabCellHandle cellHandle = levelViewHandle.getCell(); cellHandle.addContent(dataHandle); ActionHandle actionHandle = levelHandle.getActionHandle(); if (actionHandle != null) { List source = new ArrayList(); source.add(actionHandle.getStructure()); List newAction = ModelUtil.cloneStructList(source); dataHandle.setAction((Action) newAction.get(0)); } CrosstabUtil.addLabelToHeader(levelViewHandle); }