* Internal Helpers for Creating and Configuring ServerManager and Server.
*/
private ServerManager createAndConfigureServerManager()
{
ServerManager manager = new ArquillianServerManager(
configuration.getStartupTimeoutInSeconds(),
configuration.getShutdownTimeoutInSeconds()
);
if(configuration.getJbossHome() != null)
{
manager.setJbossHome(configuration.getJbossHome());
}
if(configuration.getJavaHome() != null)
{
manager.setJavaHome(configuration.getJavaHome());
}
manager.addServer(createAndConfigureServer());
return manager;
}