code: private String getMessageForLock(LockIcon lockIcon, boolean hasLockedChildren) {
  
          String result = "";
          if (!hasLockedChildren && ((lockIcon == null) || (lockIcon == LockIcon.NONE))) {
              result = Messages.get().key(Messages.GUI_LOCK_REPORT_NOTHING_LOCKED_0);
          } else if ((lockIcon == LockIcon.OPEN) || (lockIcon == LockIcon.SHARED_OPEN)) {
              if (hasLockedChildren) {
                  result = Messages.get().key(Messages.GUI_LOCK_REPORT_UNLOCK_ALL_MESSAGE_0);
              } else {
                  result = Messages.get().key(Messages.GUI_LOCK_REPORT_UNLOCK_MESSAGE_0);
              }
          } else {
              if (hasLockedChildren) {
                  result = Messages.get().key(Messages.GUI_LOCK_REPORT_STEAL_ALL_LOCKS_MESSAGE_0);
              } else {
                  result = Messages.get().key(Messages.GUI_LOCK_REPORT_STEAL_LOCK_MESSAGE_0);
              }
          }
          return result;
      }
docs: Returns the dialog message for the given lock.<p>
  
  @param lockIcon the lock icon
  @param hasLockedChildren <code>true</code> if the given resource has locked children
  
  @return the dialog message