/* Helper method that returns a resource file writer for the file having the
* indicated name and package. */
private PrintWriter _getResourceWriter(String name, String pkg) {
Filer filer = _pe.getFiler();
Element[] siblings = null;
Location loc = StandardLocation.CLASS_OUTPUT;
try {
return _getWriter(filer.createResource(loc, pkg, name, siblings), ASCII_ENCODING);
} catch (IOException ex) {
String msg = _i18n.record(Kind.ERROR, CANNOT_OPEN_BUNDLE);