File resource = getSystemBackup();
String resource = getSystemBackup();
    private GlyphNetwork ()    {        // Retrieve last custom version if any        try {            // First, look for a custom version            File custom = getCustomBackup();            if (custom.exists()){                logger.info ("Deserializing GlyphNetwork from custom"                             + " file " + custom);                network = NeuralNetwork.deserialize                    (new FileInputStream(custom));            }        } catch (FileNotFoundException ex) {            logger.warning ("Cannot find or read custom backup " +                            getCustomBackup());        }        // Second, use the system default        if (network == null){            File resource = getSystemBackup();            InputStream is = GlyphNetwork.class.getResourceAsStream                (resource.toString());            if (is != null) {                logger.info ("Deserializing GlyphNetwork from " +                             "system resource"+ resource);                network = NeuralNetwork.deserialize(is);            } else {                logger.warning ("Cannot find system resource " + resource);            }        }        // Basic check        if (network != null) {            if (network.getOutputSize() != outSize) {                logger.warning("Obsolete Network data," +                               " reconstructing from scratch");                network = null;            }        }        if (network == null) {            // Get a brand new one            logger.info ("Creating a brand new GlyphNetwork");            network = createNetwork();        }    }