constraint.init();
webAppConfig.addBuilderProgram(new PropertyValueProgram("security-constraint", constraint));
try {
_allowedNetworks = new InetNetwork[] {
new InetNetwork(InetAddress.getByName("127.0.0.1"), 24),
new InetNetwork(InetAddress.getByName("10.0.0.0"), 24),
new InetNetwork(InetAddress.getByName("172.16.0.0"), 20),
new InetNetwork(InetAddress.getByName("192.168.0.0"), 16),
};
} catch (UnknownHostException e) {
throw new RuntimeException(e);
}
}