code: public boolean setRole(String role) throws LockingException {
                  Validate.notNull(role);
                  Validate.notEmpty(role);
  
                  if (isFieldLocked(EntryField.ROLE)) {
                          if (!this.role.equals(role)) {
                                  throw new LockingException(EntryField.ROLE);
                          }
                          return false;
                  } else {
                          this.role = role;
                          return true;
                  }
          }
docs: Sets the role of the log entry ({@link #role}).
  
  @param role Role to set.
  @throws ParameterException if the given value is <code>null</code>.
  @throws LockingException if the role field is locked <br>and the
  given value differs from the actual value of {@link #role}.
  @return <code>true</code> if {@link #role} was modified;<br>
  <code>false</code> otherwise.