private static Asset loadAsset(String path, Class type) {
        if (type == Model.class) {
            try {
                return ColladaLoader.loadFile(path);
            } catch (ParserConfigurationException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            } catch (SAXException e) {
                e.printStackTrace();
            }
        } else if (type == Texture.class) {
            try {
                return new Texture(new FileInputStream(path), true);
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

        System.err.println("assetmanager failed to queue something!");
        return null;
    }