// TODO: The logic relies on the default encoding, which may cause issues when master and agent have different encodings@SuppressFBWarnings(value="DM_DEFAULT_ENCODING",justification="Open TODO item for wider rework")@Overrideprotectedvoideol(byte[]bytes,intlen)throwsIOException{Stringline=newString(bytes,0,len);if(passwordsAsPattern!=null){line=passwordsAsPattern.matcher(line).replaceAll(MASKED_PASSWORD);}logger.write(line.getBytes());}