public void configure(Properties props) throws GlassFishException {
CommandRunner commandRunner = habitat.getService(CommandRunner.class);
for (Object obj : props.keySet()) {
String key = (String) obj;
if (key.startsWith(CONFIG_PROP_PREFIX)) {
CommandResult result = commandRunner.run("set",
key.substring(CONFIG_PROP_PREFIX.length()) + "=" + props.getProperty(key));
if (result.getExitStatus() != CommandResult.ExitStatus.SUCCESS) {
throw new GlassFishException(result.getOutput());
}
}
}
}