/** * Creates a collection resource, embedding the components in a rel name derived from the component type * simple class name. The class name is lower-cased and pluralized in order to create the rel name. * * @param components * @param componentType * @param contentType * @return a new Resource instance with the collection embedded (as Resources). */ private Resource _createCollectionResource(Collection<?> components, Class<?> componentType, String contentType) { String componentRel = relationshipDefinition.getCollectionRelFor(componentType); return _createCollectionResource(components, componentType, componentRel, contentType); }