private void addObjectPermissions(Map<String,Set<ObjectPermission.Type>> permissions,ObjectPermissionSet permSet) throws GuacamoleException {
  for (  ObjectPermission permission : permSet.getPermissions()) {
    String identifier=permission.getObjectIdentifier();
    Set<ObjectPermission.Type> objectPermissions=permissions.get(identifier);
    if (objectPermissions == null)     permissions.put(identifier,EnumSet.of(permission.getType()));
 else     objectPermissions.add(permission.getType());
  }
}

private void addObjectPermissions ( Map < String , Set < ObjectPermission . Type > > permissions , ObjectPermissionSet permSet ) throws GuacamoleException { for ( ObjectPermission permission : permSet . getPermissions ( ) ) { String identifier = permission . getObjectIdentifier ( ) ; Set < ObjectPermission . Type > objectPermissions = permissions . get ( identifier ) ; if ( objectPermissions == null ) permissions . put ( identifier , EnumSet . of ( permission . getType ( ) ) ) ; else objectPermissions . add ( permission . getType ( ) ) ; } }
adds the object permissions from the given objectpermissionset to the map of object permissions provided .
