public String resolve(String toInterpolate) {
        if (StringUtils.isBlank(toInterpolate) || !toInterpolate.contains(enclosedBy)) {
            return toInterpolate;
        }
        final TextStringBuilder buf = new TextStringBuilder(toInterpolate);
        substitutor.replaceIn(buf);
        nullSubstitutor.replaceIn(buf);
        return buf.toString();
    }
Resolve string with potential secrets

@param toInterpolate potential variables that need to revealed
@return original string with any secrets that could be resolved if secrets could not be
resolved they will be defaulted to default value defined by ':-', otherwise default to empty
String. Secrets are defined as anything enclosed by '${}'
plugin/src/main/java/io/jenkins/plugins/casc/SecretSourceResolver.java