#vulnerable code 
                                public ApnsServiceBuilder withCert(String fileName, String password) {
        try {
            return withCert(new FileInputStream(fileName), password);
        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        }
    } 
                            #location 3 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public ApnsServiceBuilder withCert(String fileName, String password) {
        FileInputStream stream = null;
        try {
            stream = new FileInputStream(fileName);
            return withCert(stream, password);
        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        } finally {
            Utilities.close(stream);
        }
    }