PointList points = getPointListFor(request);
// pencil on root only
parent = LayoutUtils.translateToAndGetRoot(points, parent);
PolylineRecordCreateCommand cmd = new PolylineRecordCreateCommand();
cmd.setParent(parent);
cmd.setPointList(points);
return cmd;
} catch (Exception e) {
log.error("Error creating PolylineModelCreateCommand.", e);