}
    public int setSheetAssembly (Sheet sheet,                                 PagePoint pagPt)    {        if (logger.isFineEnabled()) {            logger.fine("setSheetAssembly for sheet " + sheet.getName() +                         " pagPt=" + pagPt);        }        if (sheet != null) {            // Make sure that scale and skew info is available for the            // sheet            Score score = sheet.getScore();            if (score != null) {                sheet.checkScaleAndSkew(score);            }            // Make sure we have a assembly on this sheet            SheetAssembly assembly = sheet.getAssembly();            if (assembly == null) {                // Build a brand new display on this sheet                assembly = new SheetAssembly(sheet);                // Initial zoom ratio                assembly.setZoomRatio(constants.initialZoomRatio.getValue());            }            // Make sure the assembly is part of the tabbed pane            int index = component.indexOfComponent                (assembly.getComponent());            if (index == -1) {                if (logger.isFineEnabled()) {                    logger.fine("Adding assembly for sheet " +                                 sheet.getName());                }                // Insert in tabbed pane                assemblies.add(assembly);                component.addTab                    (sheet.getName(), null, assembly.getComponent(),                     sheet.getPath());                index = component.indexOfComponent(assembly.getComponent());            }            // Focus info            if (pagPt == null) {                if (logger.isFineEnabled()) {                    logger.fine("No focus specified on Sheet side");                }//                 // Does the score view has a defined focus ?//                 if (score != null) {//                     ScoreView scoreView = score.getView();//                     if (scoreView != null) {//                         pagPt = scoreView.getFocus();//                     }//                 }            }            if (pagPt != null) {                // Use this focus information in the assembly                //                 assembly.setFocus(pagPt);            }            return index;        } else {            return -1; // Index of the empty tab        }    }