code: public static String getType(I_CmsPrincipal principal) {
  
          if (principal == null) {
              return null;
          }
          if (principal.isGroup()) {
              return I_CmsPrincipal.PRINCIPAL_GROUP;
          } else {
              return I_CmsPrincipal.PRINCIPAL_USER;
          }
      }
docs: Gets the type of a principal.<p>
  
  @param principal the principal
  @return the principal type