static List<String> listStations(ObjectOutputStream toServer, ObjectInputStream fromServer) throws IOException, ClassNotFoundException {
        log.debug("Start \"listStations\" method");
        GetAllStationsRequestInfo req = new GetAllStationsRequestInfo();
        log.debug("Send GetAllStationsRequestInfo to server");
        toServer.writeObject(req);

        Object o = fromServer.readObject();
        if (o instanceof RespondInfo) {
            if (((RespondInfo) o).getStatus() == RespondInfo.SERVER_ERROR_STATUS) {
                System.out.println("Server error");
                log.debug("Server error");
                return null;
            } else if (o instanceof GetAllStationRespondInfo) {
                GetAllStationRespondInfo respond = (GetAllStationRespondInfo) o;
                log.debug("Received GetAllStationRespondInfo from server");

                List<String> allStations = respond.getListAllStation();
                System.out.println("Stations:");
                for (String station : allStations) {
                    System.out.println(station);
                }
                log.debug("Get all station");
                return allStations;

            }
        }
        log.error("Unknown object type");
        return null;
    }