docs: protected <T> List<T> getResources(final ResourceType resourceType, final Class<T> type,
          @Nullable final String locationUUID) throws FlexiantException {
  
          SearchFilter sf = new SearchFilter();
  
          if (locationUUID != null) {
              FilterCondition fcLocation = new FilterCondition();
              fcLocation.setCondition(Condition.IS_EQUAL_TO);
              fcLocation.setField("vdcUUID");
              fcLocation.getValue().add(locationUUID);
              sf.getFilterConditions().add(fcLocation);
          }
  
          try {
              //noinspection unchecked
              return (List<T>) this.getService().listResources(sf, null, resourceType).getList();
          } catch (ExtilityException e) {
              throw new FlexiantException(
                  String.format("Error while retrieving resources of resourceType %s.", resourceType),
                  e);
          }
      }