while ((next < max) && (path.charAt(next) != ServerSpec.PATH_SEPARATOR)) {
++next;
}
// Found a slash at next position, invalid path syntax
if ((next < max) && (next == pos)) {
throw new SimpleServerException(SimpleServerException.incorrect_path_syntax,
new Object[] { path });
}
String feature = path.substring(pos, next);
if (!TypeSystemUtils.isIdentifier(feature)) {
throw new SimpleServerException(SimpleServerException.incorrect_feature_syntax,
new Object[] { feature, path });
}
featureList.add(feature);
pos = next + 1;
}