move java attribs to role