public int load( String filePath ) {
        XMLConfigParser pars = new XMLConfigParser();
        pars.parseDocument("Format");

        String file = filePath.substring(filePath.lastIndexOf("\\"));
        String extension = file.substring(file.indexOf(".") + 1);
        String fileExtension = null;

        for ( XMLConfigParser elems : pars.getMyFormats() ){
            for ( int i = 0; i < elems.getExtension().length; i ++){
                if ( extension.equalsIgnoreCase(elems.getExtension()[ i ] ) ){
                    fileExtension = elems.getName();
                    break;
                }
            }
            if ( fileExtension != null) {
                break;
            }
        }

        char c = fileExtension.charAt(0);

        switch (c) {
            case 'W' :
                loadable = new WavLoader( filePath );
                break;
            case 'M' :
                loadable = new Mp3Loader( filePath );
                break;
        }

        // To-Do
//        try {
//            extension = Files.probeContentType( Paths.get( filePath ) );
//        } catch (IOException e) {
//            e.printStackTrace();
//        }



        /* Choosing file decoder */
        //if ( WavLoader.getFileIdentifier().compareToIgnoreCase( extension ) == 0 ) {
            //loadable = new WavLoader( filePath );
        //}

        return 0;
    }