void (final RadContainer container, final RadComponent component, final int index) { final JSplitPane splitPane = (JSplitPane) container.getDelegee(); final JComponent delegee = component.getDelegee(); if (LwSplitPane.POSITION_LEFT.equals(component.getCustomLayoutConstraints())) { splitPane.setLeftComponent(delegee); } else if (LwSplitPane.POSITION_RIGHT.equals(component.getCustomLayoutConstraints())) { splitPane.setRightComponent(delegee); } else { throw new IllegalStateException("invalid layout constraints on component added to RadSplitPane"); } }