class ConfigCenterNode {

    public String getSchemaName(final String configurationNodeFullPath) {
        Pattern pattern = Pattern.compile(getSchemasPath() + "/(\\w+)" + "(/datasource|/rule)?", Pattern.CASE_INSENSITIVE);
        Matcher matcher = pattern.matcher(configurationNodeFullPath);
        return matcher.find() ? matcher.group(1) : "";
    }

}