@Override
    public InputStream open(String path) throws IOException {
        try (InputStream in = delegate.open(path);) {
            final String config = new String(ByteStreams.toByteArray(in), StandardCharsets.UTF_8);
            final String substituted = substitutor.replace(config);

            return new ByteArrayInputStream(substituted.getBytes(StandardCharsets.UTF_8));
        }
    }
@ Override public InputStream open ( String path ) throws IOException { try ( InputStream in = delegate . open ( path ) ; ) { final String config = new String ( ByteStreams . toByteArray ( in ) , StandardCharsets . UTF_8 ) ; final String substituted = substitutor . replace ( config ) ; return new ByteArrayInputStream ( substituted . getBytes ( StandardCharsets . UTF_8 ) ) ; } }
{@inheritDoc}