added support for composite restraint

Signed-off-by: Riccardo Pellarin <pellarin.riccardo@gmail.com>