code: private boolean hasOnlyNewResources(List<CmsResource> projectResources) {
  
          boolean hasOnlyNewResources = true;
          for (CmsResource projectRes : projectResources) {
              if (!projectRes.getState().isNew()) {
                  hasOnlyNewResources = false;
                  break;
              }
          }
          return hasOnlyNewResources;
      }
docs: Checks if all the resource states from a list of resources are 'new'.<p>
  
  @param projectResources the resources to check
  @return true if all the resources from the input list have the state 'new'