Here is what finally helped me:
#set($Controller_name = ${StringUtils.removeAndHump(${NAME}, ".")})
It can be reduced to:
#set($Controller_name = ${StringUtils.removeAndHump(${NAME}, ".")})
Thanks @LazyOne for pointing me in the right direction.
zorza source share