src/main/java/com/hp/autonomy/hod/client/api/resource/ResourceType.java
public static Set<ResourceType> of(final ResourceType first, final ResourceType... rest) {
        final Set<ResourceType> set = new HashSet<>();
        set.add(first);
        set.addAll(Arrays.asList(rest));
        return set;
    }
public static Set<ResourceType> of(final ResourceType first, final ResourceType... rest) {
        final Set<ResourceType> set = new HashSet<>();
        set.add(first);
        set.addAll(Arrays.asList(rest));
        return set;
    }
Returns a set containing the given resource types

@param first The first resource type to add
@param rest  The remaining resource types to add
@return A set containing the given resource types