protected String getUrlBinding(String name) {  for (String base : getBasePackages()) { int i = name.indexOf(base); if (i != -1) { name = name.substring(i + base.length()); }
public String getUrlBinding(Class<? extends ActionBean> clazz) { String binding = super.getUrlBinding(clazz);   if (binding == null && !Modifier.isAbstract(clazz.getModifiers())) { binding = getUrlBinding(clazz.getName());
    protected String getUrlBinding(String name) {        // Chop off the packages up until (and including) any base package        for (String base : getBasePackages()) {            int i = name.indexOf(base);            if (i != -1) {                name = name.substring(i + base.length());            }        }        // If it ends in Action or Bean (or ActionBean) take that off        if (name.endsWith("Bean")) {            name = name.substring(0, name.length() - 4);        }        if (name.endsWith("Action")) {            name = name.substring(0, name.length() - 6);        }        // Replace periods with slashes and make sure it starts with one        name = name.replace('.', '/');        if (!name.startsWith("/")) {            name = "/" + name;        }        // Lastly add the suffix        name += getBindingSuffix();        return name;    }