while (i.hasNext()) {
String key = (String) i.next();
if (LOG.isDebugEnabled()) {
LOG.debug("Initializing controller: " + key);
}
XmlDefinition d = definitions.getDefinition(key);
try {
Controller controller = d.getOrCreateController();
if (controller != null) {
// check if it is implementing Startable, if so execute lifecycle
// method
if (controller instanceof Startable) {
((Startable) controller).start(servletContext);