code: public Permission createPermission(final String name, final String description) {
          pm.currentTransaction().begin();
          final Permission permission = new Permission();
          permission.setName(name);
          permission.setDescription(description);
          pm.makePersistent(permission);
          pm.currentTransaction().commit();
          return getObjectById(Permission.class, permission.getId());
      }
docs: Creates a Permission object.
  @param name The name of the permission
  @param description the permissions description
  @return a Permission
  @since 1.1.0