Jaspersoft Masking

 "************"+$P{var}.substring($P{var}.length() - 4)
ngonza27