baseName = baseName.replace('.', '/'); InputStream is = ResourceBundleManager.class .getResourceAsStream(baseName + "_" + l.toString());
InputStream is = null; if ((is = getInputStream(baseName + "_" + l.toString() + ".properties")) == null) {   is = getInputStream(baseName + "_" + l.getLanguage() + ".properties"); } if (is == null) return new byte[0];
    public static byte[] getResourceByteArray(Locale l, String baseName) {	try {	    baseName = baseName.replace('.', '/');	    InputStream is = ResourceBundleManager.class		.getResourceAsStream(baseName + "_" + l.toString());	    ByteArrayOutputStream bos = new ByteArrayOutputStream();	    int max;	    byte buf[] = new byte[1024];	    while ((max = is.read(buf)) != -1) {		bos.write(buf, 0, max);	    }	    return bos.toByteArray();	} catch (Exception e) {	    return new byte[0];	}    }