* @param aDestination
* @return
* @throws ConfigurationException
*/
protected ServerInstance createNewInstance(Destination aDestination) throws ConfigurationException {
ServerConfig config = configManager.getServerConfig(aDestination.getServerId());
if (config == null) {
// no such server, try default config?
}
Class<? extends ServerInstance> instanceClass = getInstanceClass(config);
ServerInstance instance;