server.start();
InitialContext context = new InitialContext();
if(appName == null)
server.deploy(deployments);
else
{
// Create a virtual EAR with the correct name and add the given modules.
/* If only...
EnterpriseArchive archive = ShrinkWrap.create(EnterpriseArchive.class, appName);