@Override
    public Object load(AssetInfo info) throws IOException {
        if (!(info.getKey() instanceof TextureKey)) {
            throw new IllegalArgumentException("Texture assets must be loaded using a TextureKey");
        }

        boolean flip = ((TextureKey) info.getKey()).isFlipY();
        InputStream in = null;
        try {
            in = info.openStream();
            Image img = load(in, flip);
            return img;
        } finally {
            if (in != null) {
                in.close();
            }
        }
    }
<code>TextureManager</code> provides static methods for building a
<code>Texture</code> object. Typically, the information supplied is the
filename and the texture properties.

@author Mark Powell
@author Joshua Slack - cleaned, commented, added ability to read 16bit true color and color-mapped TGAs.
@author Kirill Vainer - ported to jME3
@version $Id: TGALoader.java 4131 2009-03-19 20:15:28Z blaine.dev $
jme3-core/src/plugins/java/com/jme3/texture/plugins/TGALoader.java