p.setPermission(PermissionAPI.PERMISSION_EDIT);
perAPI.save(p, st, systemUser, true);
p = new Permission();
p.setInode(st.getPermissionId());
p.setRoleId(roleAPI.loadCMSAnonymousRole().getId());
p.setPermission(PermissionAPI.PERMISSION_PUBLISH);
perAPI.save(p, st, systemUser, true);
Field title = new Field("Title",Field.FieldType.TEXT,Field.DataType.TEXT,st,true,true,true,1,"", "", "", false, false, true);
title.setVelocityVarName("title");