/**
* Make sure all system properties with a given prefix are also available inside the container
*/
public static DefaultCompositeOption passThroughAllSystemPropertiesWithPrefix(String prefix) {
DefaultCompositeOption options = new DefaultCompositeOption();
for (String name : System.getProperties().stringPropertyNames()) {
if (name.startsWith(prefix)) {
options.add(systemProperty(name).value(System.getProperty(name)));
}
}
return options;
}