/** * Annotations must not break 1.3, so we use reflection to create an * <code>org.directwebremoting.annotations.AnnotationsConfigurator</code> * and the catch all sorts of random exceptions for the benefit of * Websphere. * @param container The container to configure * @return true if the configuration worked. */ public static boolean configureFromAnnotations(Container container) { Object data = container.getBean("classes"); if (null != data) { Configurator configurator = new AnnotationsConfigurator(); configurator.configure(container); Loggers.STARTUP.debug("Java5 AnnotationsConfigurator enabled"); return true; } return false; }