build sndc and user directives in groovy