class UrnPropertiesReader {

    public static String getVariable(String variableName, DelegateExecution execution) {
        Object value = execution.getVariable(variableName);
        if (value != null) {
            logger.trace("Retrieved value for the URN variable, {}, from the execution object: {}", variableName,
                    String.valueOf(value));
            return String.valueOf(value);
        }
        String variableValue = null;
        if (environment != null && environment.getProperty(variableName) != null) {
            variableValue = environment.getProperty(variableName);
            logger.trace("Retrieved value for the URN variable, {}, from the environment variable: {}", variableName,
                    variableValue);
            execution.setVariable(variableName, variableValue);
            return variableValue;
        }
        return variableValue;
    }

}