ServerConnection connection = connect();
DeploymentManager deploymentManager = connection.getDeploymentManager();
NewServerInstance newServerInstance =
(NewServerInstance) ((GeronimoDeploymentManager) deploymentManager).getImplementation(NewServerInstance.class);
newServerInstance.newServerInstance(serverName);
println("Server created");
return null;
}
}