/**
* Throws an exception if the given path is <code>null</code> or invalid.
*/
protected void checkPath(String name, String path) {
if (path == null) {
throw new CmisInvalidArgumentException(name + " must be set!");
}
if (path.length() == 0) {
throw new CmisInvalidArgumentException(name + " must not be empty!");
}
if (path.charAt(0) != '/') {
throw new CmisInvalidArgumentException(name + " must start with '/'!");
}
}