I got an example
#set($organizationId = $layout.getGroup().getOrganizationId())
can I rewrite it as
#set($organizationId = $layout.group.organizationId)
?
Will it be exactly the same?
Yes. See here: Velocity User Guide - Property Lookup Rules which states:
As an example, $customer.address
, the sequence is
getaddress()
getAddress()
get("address")
isAddress()
To be more precise, Velocity User Guide - Case Substitution:
$data.getRequest().getServerName()
## is the same as
$data.Request.ServerName