public MemorySourceJavaFileObject(String name, String code) {
        super(createUriFromName(name), Kind.SOURCE);
        if (code == null) {
            throw new NullPointerException("code");
        }
        this.code = code;
    }