public void startServer() {
        if (!isRunable) {
            Socket socket = null;

            try {
                serverSocket = new ServerSocket(8080);
                isRunable = true;
                while (true) {
                    socket = serverSocket.accept();
                    poolConnections.execute(new SocketHandler(socket));

                }
            } catch (IOException e) {
                logger.error(e.getMessage());
            } finally {
                try {
                    if (socket != null && !socket.isClosed())
                        socket.close();
                    if (serverSocket != null && !serverSocket.isClosed())
                        serverSocket.close();
                }
                catch (Exception ex){
                    logger.error(ex.getMessage());
                }
            }
        }
    }