max = filterConfig.getInitParameter("maxBinaryMessageSize");
if (max != null)
serverPolicy.setMaxBinaryMessageSize(Integer.parseInt(max));
_webSocketFactory = new WebSocketServerFactory(serverPolicy);
_webSocketFactory.setCreator(new WebSocketCreator()
{
@Override
public Object createWebSocket(UpgradeRequest upgradeRequest,
UpgradeResponse upgradeResponse)
{