code: public static void checkResourceName(String name) {
  
          try {
              CmsResource.checkResourceName(name);
          } catch (CmsIllegalArgumentException e) {
              throw new CmisNameConstraintViolationException(e.getLocalizedMessage(), e);
          }
      }
docs: Checks whether a name is a valid OpenCms resource name and throws an exception otherwise.<p>
  
  @param name the name to check