private static String unmapLibraryName(String filename) {
        StringBuilder sb = new StringBuilder(filename);
        if (sb.indexOf("lib") == 0 && !filename.toLowerCase().endsWith(".dll")) {
            sb.delete(0, 3);
        }
        int dot = sb.lastIndexOf(".");
        if (dot > 0) {
            sb.delete(dot, sb.length());
        }
        return sb.toString();
    }
Removes platform-specific portions of a library file name so
that it can be accepted by {@link System#loadLibrary(java.lang.String) }.
<p>
E.g.<br>
<ul>
<li>jinput-dx8_64.dll => jinput-dx8_64</li>
<li>liblwjgl64.so => lwjgl64</li>
<li>libopenal.so => openal</li>
</ul>

@param filename The filename to strip platform-specific parts
@return The stripped library name
jme3-desktop/src/main/java/com/jme3/system/NativeLibraryLoader.java