Class<?>[] parameterTypes = new Class<?>[0];
try {
Method panelMethod =
Class.forName(className).getMethod("getControlPanel", parameterTypes);
OkJPanel panel = (OkJPanel)panelMethod.invoke(null, (Object[])null);
panelList.add(panel);
}
catch (Exception e) {
s_log.error("Unexpected exception: "+e.getMessage(), e);
}