#vulnerable code 
                             public static Object parseXbean(String xml) {
		if (xml == null) {
			return null;
		}
		ByteArrayInputStream bi = new ByteArrayInputStream(xml.getBytes());
		XMLDecoder xd = new XMLDecoder(bi);
		return xd.readObject();
	} 
                            #location 7 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             public static Object parseXbean(String xml) {
		if (xml == null) {
			return null;
		}
		ByteArrayInputStream bi = new ByteArrayInputStream(xml.getBytes());
		XMLDecoder xd = new XMLDecoder(bi);
		try {
			return xd.readObject();
		} finally {
			xd.close();
		}
	}