code: public CmsAccessControlEntry toAccessControlEntry(CmsObject cms, CmsUUID resID) {
  
          CmsUUID id = null;
          if (isRealPrinciple()) {
              if (CmsRole.PRINCIPAL_ROLE.equals(m_principalType)) {
                  CmsRole role = CmsRole.valueOfRoleName(m_principalName);
                  if (role != null) {
                      id = role.getId();
                  }
              } else {
                  try {
                      id = CmsPrincipal.readPrincipal(cms, m_principalName).getId();
                  } catch (CmsException e) {
                      //
                  }
              }
          } else {
              if (m_principalName.equals(CmsAccessControlEntry.PRINCIPAL_ALL_OTHERS_NAME)) {
                  id = CmsAccessControlEntry.PRINCIPAL_ALL_OTHERS_ID;
              }
              if (m_principalName.equals(CmsAccessControlEntry.PRINCIPAL_OVERWRITE_ALL_NAME)) {
                  id = CmsAccessControlEntry.PRINCIPAL_OVERWRITE_ALL_ID;
              }
          }
  
          if (m_permissionString == null) {
              return new CmsAccessControlEntry(resID, id, m_allowed, m_denied, m_flags);
          }
          CmsAccessControlEntry entry = new CmsAccessControlEntry(resID, id, m_permissionString);
          return entry;
      }
docs: Creates ACE from bean.<p>
  
  @param cms CmsObject
  @param resID id of resource
  @return CmsAccessControlEntry