*/
private SpringDeployerConfiguration getConfiguration(Instance<ArquillianDescriptor> descriptor) {
Map<String, String> properties = getExtensionProperties(descriptor.get());
SpringDeployerConfiguration result = new SpringDeployerConfiguration();
result.setAutoPackaging(getBooleanProperty(properties,
SpringDeployerConstants.CONFIGURATION_AUTO_PACKAGE, true));
result.setEnableCache(getBooleanProperty(properties,
SpringDeployerConstants.CONFIGURATION_ENABLE_CACHE, true));
result.setUseMavenOffline(getBooleanProperty(properties,
SpringDeployerConstants.CONFIGURATION_USE_MAVEN_OFFLINE, false));
result.setImportPomDependencies(getBooleanProperty(properties,
SpringDeployerConstants.CONFIGURATION_IMPORT_POM_DEPENDENCIES, true));
result.setPomFile(getStringProperty(properties,
SpringDeployerConstants.CONFIGURATION_POM_FILE,
SpringDeployerConstants.POM_XML));
result.setSpringVersion(getStringProperty(properties,
SpringDeployerConstants.CONFIGURATION_SPRING_VERSION, null));
result.setCglibVersion(getStringProperty(properties,
SpringDeployerConstants.CONFIGURATION_CGLIB_VERSION, null));
result.setIncludeSnowdrop(getBooleanProperty(properties,
SpringDeployerConstants.CONFIGURATION_INCLUDE_SNOWDROP, false));
result.setSnowdropVersion(getStringProperty(properties,
SpringDeployerConstants.CONFIGURATION_SNOWDROP_VERSION, null));
return result;
}