Class<?> newClass = Class.forName(serverName + "Server");
newServer = (AuctionServer) newClass.newInstance();
newServer = setServer(newServer);
} catch(ClassNotFoundException cnfe) {
JConfig.log().handleException("Failed to load controller class for server " + serverName + '.', cnfe);
throw new XMLParseException(inXML.getTagName(), "Failed to load controller class for server " + serverName + '.');
} catch(InstantiationException ie) {
JConfig.log().handleException("Failed to instantiate server " + serverName + '.', ie);
throw new XMLParseException(inXML.getTagName(), "Failed to instantiate server for " + serverName + '.');
} catch(IllegalAccessException iae) {
JConfig.log().handleException("Illegal access when instantiating server for " + serverName + '.', iae);
throw new XMLParseException(inXML.getTagName(), "Illegal access when instantiating server for " + serverName + '.');
}
}
}
if (newServer != null) {