}
private static SocketConnector configureConnection(final Properties prop) {
// don't even think of serving more than XX requests in parallel...
// we have a limit in our processing and memory capacities
BoundedThreadPool tp = new BoundedThreadPool();
tp.setMaxThreads(50);
SocketConnector conn = new SocketConnector();
conn.setPort(parseInt(prop.getProperty(JETTY_PORT, JETTY_PORT_DEFAULT)));
conn.setThreadPool(tp);