Its possible to add whole usecase and class diagrams inside a frame, but when trying to do the same with sequence diagrams it gives a syntax error:
frame foo {
participant a
participant b
a -> b
}
Seems like the syntax of sequence diagrams is different, so I also tried this:
group foo
participant a
participant b
a -> b
end
But it wont place all diagram inside the frame, only the a -> b part.
I would like something like this, a frame around whole diagram:

http://forum.plantuml.net/6867 and http://forum.plantuml.net/4019 and http://forum.plantuml.net/1142 also references the same problem.
PlantUML version 1.2018.00 (Thu Jan 04 20:42:56 CET 2018)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Java Version: 9-Debian+0-9b181-4bpo91
Operating System: Linux
OS Version: 4.9.0-5-amd64
Default Encoding: UTF-8
Language: en
Country: US
Machine: Debian
PLANTUML_LIMIT_SIZE: 4096
Processors: 4
Max Memory: 826,277,888
Total Memory: 52,428,800
Free Memory: 45,254,400
Used Memory: 7,174,400
Thread Active Count: 1
The environment variable GRAPHVIZ_DOT has not been set
Dot executable is /usr/bin/dot
Dot version: dot - graphviz version 2.38.0 (20140413.2041)
Installation seems OK. File generation OK