* Internal Helpers for Creating and Configuring ServerManager and Server.
*/
private ServerManager createAndConfigureServerManager(JBossASConfiguration configuration)
{
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(configuration));
return manager;
}