WSOTWO-81: Added an ability to configure rules of creating connection between elements