public static void readMemoryIn(String path) throws InvalidClassException {
        try {
            try (FileInputStream fileIn = new FileInputStream(("".equals(path) ? "pitmanager" : path)); 
                    ObjectInputStream in = new ObjectInputStream(fileIn)) {
                Competition.setInstance((Competition) in.readObject());
            }
        } catch (InvalidClassException ex) {
            throw new InvalidClassException("Serialized file not valid");
        } catch (ClassNotFoundException | IOException ex) {
            Logger.getLogger(SerializationManager.class.getName()).log(Level.SEVERE, null, ex);
        }
    }