if (this.getClass().getName() == StickSection.class.getName()) {
if (this.getClass().getName().equals (StickSection.class.getName())) {
    public String toString ()    {        StringBuffer sb = new StringBuffer(256);        sb.append(super.toString());        sb.append(" L=").append(layer);        sb.append(" D=").append(direction);        if (role != null) {            sb.append(" ").append(role);        }        if (this.getClass().getName() == StickSection.class.getName()) {            sb.append("}");        }        return sb.toString();    }