A small groovy code which check if a connector definition is well formed