From Apache velocity guide property lookup rules are:
for adress property ($object.address)
getaddress()
getAddress()
get("address")
isAddress()
I would like to change get rule to accept varargs Object parameters. So it will not call
get(String name)
but
get(String name, Object...params)
I know it could be propably done by creating custom ubespector. But I have absolutely no idea how.
Finaly after 2 days of digging I was able to make custom Uberspector. Which if no corresponding method is found will call “run(String, Object[])” method. Standard “get(String)” will call
CustomUbersector
}