public Endpoint createEndpointForResource(Resource resource, String relativePath, EntityTag entityTag, Date lastModified) throws EndpointCreationException { checkNotNull(resource,RESOURCE_CANNOT_BE_NULL); checkNotNull(entityTag,ENTITY_TAG_CANNOT_BE_NULL); checkNotNull(lastModified,LAST_MODIFIED_CANNOT_BE_NULL); Endpoint newEndpoint = createEndpoint(resource, relativePath, entityTag, lastModified); this.listenerManager.notify(new EndpointCreationNotification(newEndpoint)); return newEndpoint; }