return profile;
} else {
// We should filter all fields that the requestor is not
// supposed to see and strip all data related to ACLs.
final AclAction viewAction = aclFactory.aclAction(AclAction.ACTION_VIEW, AclAction.PERMISSION_GRANT);
List<Field> fields =profile.getFields();
List<Field> canSeefields= new ArrayList<Field>();
for (Field field: fields)
{
boolean canSee=false;