Producing a bordercontainer directly from the Scala code