public Node addNode(String name, String type) throws ItemExistsException, PathNotFoundException, NoSuchNodeTypeException, LockException, VersionException, ConstraintViolationException, RepositoryException {
try {
if (type.equals(Constants.NT_FOLDER) || type.equals(Constants.JAHIANT_FOLDER) || type.equals(Constants.JAHIANT_CONTENTLIST)) {
FileObject obj = fileObject.resolveFile(name);
obj.createFolder();
return new VFSNodeImpl(obj, session);
} else if (type.equals(Constants.NT_FILE) || type.equals(Constants.JAHIANT_FILE)) {
FileObject obj = fileObject.resolveFile(name);
obj.createFile();
return new VFSNodeImpl(obj, session);