class PathParameterCallbackUrlResolver implements CallbackUrlResolver {

    /** {@inheritDoc} */
    @Override
    public String compute(final UrlResolver urlResolver, final String url, final String clientName, final WebContext context) {
        var newUrl = urlResolver.compute(url, context);
        if (newUrl != null) {
            if (!newUrl.endsWith("/")) {
                newUrl += "/";
            }
            newUrl += clientName;
        }
        return newUrl;
    }

    /** {@inheritDoc} */
    @Override
    public boolean matches(final String clientName, final WebContext context) {<FILL_FUNCTION_BODY>}
}

        val path = context.getPath();
        if (path != null) {
            val pos = path.lastIndexOf("/");
            final String name;
            if (pos >= 0) {
                name = path.substring(pos + 1);
            } else {
                name = path;
            }
            return CommonHelper.areEqualsIgnoreCaseAndTrim(name, clientName);
        }
        return false;
    
<no_super_class>