code: public Resource build() {
          Resource resource = null;
          if (_url != null) {
              resource = _kieResources.newUrlResource(_url);
              if (resource != null) {
                  if (_resourceType != null) {
                      resource.setResourceType(_resourceType);
                  }
                  if (_resourceConfiguration != null) {
                      resource.setConfiguration(_resourceConfiguration);
                  }
              }
          }
          return resource;
      }
docs: Builds a Resource.
  
  @return a Resource