add java attributes in role