encoding = outputProperties.getProperty(OutputKeys.ENCODING, "utf8");
}
if (name.equals("hex")) {
bytes = new HexBinaryValue(value).getBinaryValue();
} else if (name.equals("b64")) {
bytes = new Base64BinaryValue(value).getBinaryValue();
}
if (bytes != null) {
try {
ByteArrayInputStream stream = new ByteArrayInputStream(bytes);
InputStreamReader reader = new InputStreamReader(stream, encoding);