public InputStream createInputStream(InputStream is) { try { String json = IOHelpers.readFully(is); String replaced = replaceValues(json); return new ByteArrayInputStream(replaced.getBytes()); } catch (IOException e) { throw KubernetesClientException.launderThrowable(e); } }