docs: protected static String determineMethodsAllowed( StoredObject so ) {
  
          try {
              if (so != null) {
                  if (so.isNullResource()) {
  
                      return NULL_RESOURCE_METHODS_ALLOWED;
  
                  } else if (so.isFolder()) {
                      return RESOURCE_METHODS_ALLOWED + FOLDER_METHOD_ALLOWED;
                  }
                  // else resource
                  return RESOURCE_METHODS_ALLOWED;
              }
          } catch (Exception e) {
              // we do nothing, just return less allowed methods
          }
  
          return LESS_ALLOWED_METHODS;
      }