private void deploy() throws PhrescoException { try { List<com.photon.phresco.configuration.Configuration> configurations = pUtil.getConfiguration(baseDir, environmentName, Constants.SETTINGS_TEMPLATE_SERVER); for (com.photon.phresco.configuration.Configuration configuration : configurations) { String serverContext = configuration.getProperties().getProperty(Constants.SERVER_CONTEXT); String protocol = configuration.getProperties().getProperty(Constants.SERVER_PROTOCOL); String host = configuration.getProperties().getProperty(Constants.SERVER_HOST); String port = configuration.getProperties().getProperty(Constants.SERVER_PORT); restore(protocol, serverContext, host, port); addSolution(wspFile); deploysolution(protocol, serverContext, host, port, wspFile); } } catch (MojoExecutionException e) { throw new PhrescoException(e); } }