103104105106107108109110111112113
profile.removeAll(); try{ for (Field f: canSeefields){ f.setAclRules(new ArrayList<AclRule>()); profile.addField(f); } }catch (CardinalityException ce){ }catch (UnsupportedFieldException ufe){ } return profile;