* @throws RepositoryException {@link RepositoryException}
*/
protected CollectionResource(final int type, final URI identifier, Node node,
final WebDavNamespaceContext namespaceContext) throws IllegalResourceTypeException, RepositoryException
{
super(type, identifier, new WebDavNamespaceContext(node.getSession()));
if (ResourceUtil.isFile(node))
throw new IllegalResourceTypeException("Node type is not applicable for COLLECTION resource " + node.getPath());
this.node = node;
}