public static boolean containsEnvVariables(String source){
  return (source.indexOf("${") >= 0);
}

public static boolean containsEnvVariables ( String source ) { return ( source . indexOf ( "${" ) >= 0 ) ; }
tests for the presence of environment variables .
