function readProperty {
    module=$1
    prop=$2
    env=`cat /etc/yandex/environment.type`
    pattern="/$prop/s/^.*=//p"
    propValue=`sed -n $pattern /etc/yandex/disk/$module/application.properties`
    if [ -z "$propValue" ]; then
        propValue=`sed -n $pattern /etc/yandex/disk/$module/application-$env.properties`
    fi
    if [ -z "$propValue" ]; then
        echo "$prop is empty" >&2
        exit 1
    fi
    echo $propValue
}
