Changed syntax to access Direction from Java.
Added extra mapping to lower and upper in Yaml files.