InputStream is = new ByteArrayInputStream(
"<div location='loc1'>".getBytes());
try {
final CustomLayout cl = new CustomLayout(is);
cl.addComponent(new TextField("Hello world"), "loc1");
cl.setPrimaryStyleName("my-customlayout");
addComponent(cl);
addComponent(new Button("Set primary stylename",