docs: @SuppressWarnings("unchecked")
      protected <T extends RepositoryResourceImpl> T createNewResource() {
  
          T result;
          if (null == getType()) {
              result = (T) createTestResource(getRepositoryConnection());
          } else {
              result = ResourceFactory.getInstance().createResource(getType(), getRepositoryConnection(), null);
          }
          return result;
      }