.setPrincipal(Configuration.get(Constants.INTEGRATION_MESOS_PRINCIPAL)).setSecret(
ByteString.copyFrom(
Configuration.get(Constants.INTEGRATION_MESOS_SECRET).getBytes("UTF-8")));
return credentialBuilder.build();
} catch (UnsupportedEncodingException ex) {
<BUG>System.err.println("Failed to encode secret when creating Credential.");

}</BUG>
return null;
}

.setPrincipal(Configuration.get(Constants.INTEGRATION_MESOS_PRINCIPAL)).setSecret(
ByteString.copyFrom(
Configuration.get(Constants.INTEGRATION_MESOS_SECRET).getBytes("UTF-8")));
return credentialBuilder.build();
} catch (UnsupportedEncodingException ex) {
LOG.error(String.format("Failed to encode secret when creating Credential: %s",
ex.getMessage()));
}
return null;
}
