code: protected boolean checkNewEntry(String name, int arrayPosition) {
  
          m_errorMessages.clear();
          boolean inArray = false;
          if (getTypes(false)[arrayPosition] != null) {
              inArray = true;
          }
          if (!inArray) {
              m_errorMessages.add(key(Messages.ERR_PERMISSION_SELECT_TYPE_0));
          }
          if (CmsStringUtil.isEmptyOrWhitespaceOnly(name)) {
              m_errorMessages.add(key(Messages.ERR_MISSING_GROUP_OR_USER_NAME_0));
          }
          if (m_errorMessages.size() > 0) {
              return false;
          }
          return true;
      }
docs: Validates the user input when creating a new access control entry.<p>
  
  @param name the name of the new user/group
  @param arrayPosition the position in the types array
  
  @return true if everything is ok, otherwise false