void (final RadContainer container, final RadComponent component, final int index) { try { final JScrollPane scrollPane = (JScrollPane)container.getDelegee(); final JComponent delegee = component.getDelegee(); delegee.setLocation(0,0); scrollPane.setViewportView(delegee); } catch (ClassCastException e) { LOG.info(e); LOG.info("container classloader=" + container.getDelegee().getClass().getClassLoader()); LOG.info("component classloader=" + component.getDelegee().getClass().getClassLoader()); throw e; } }