*
* @return a DeploymentSynchronizerConfiguration instance
*/
public static DeploymentSynchronizerConfiguration getDeploymentSyncConfiguration() {
DeploymentSynchronizerConfiguration config = new DeploymentSynchronizerConfiguration();
ServerConfiguration serverConfig = ServerConfiguration.getInstance();
String value = serverConfig.getFirstProperty(DeploymentSynchronizerConstants.ENABLED);
config.setEnabled(value != null && JavaUtils.isTrueExplicitly(value));
value = serverConfig.getFirstProperty(DeploymentSynchronizerConstants.AUTO_CHECKOUT_MODE);
config.setAutoCheckout(value != null && JavaUtils.isTrueExplicitly(value));
value = serverConfig.getFirstProperty(DeploymentSynchronizerConstants.AUTO_COMMIT_MODE);
config.setAutoCommit(value != null && JavaUtils.isTrueExplicitly(value));
value = serverConfig.getFirstProperty(DeploymentSynchronizerConstants.USE_EVENTING);
config.setUseEventing(value != null && JavaUtils.isTrueExplicitly(value));
value = serverConfig.getFirstProperty(DeploymentSynchronizerConstants.AUTO_SYNC_PERIOD);
if (value != null) {
config.setPeriod(Long.parseLong(value));
} else {
config.setPeriod(DeploymentSynchronizerConstants.DEFAULT_AUTO_SYNC_PERIOD);
}