if (this.getClass().getName() == Glyph.class.getName()) {
if (this.getClass().getName().equals (Glyph.class.getName())) {
        public String toString ()    {        StringBuffer sb = new StringBuffer(256);        sb.append("{").append(getPrefix());        sb.append("#").append(id);        if (shape != null) {            sb.append(" shape=").append(shape);        }        if (guess != null) {            sb.append(" guess=").append(guess);        }        if (centroid != null) {            sb.append(" center=[").append(centroid.x).append(",");            sb.append(centroid.y).append("]");        }        //         if (moments != null)        //             sb.append(" moments=" + moments);        if (this.getClass().getName() == Glyph.class.getName()) {            sb.append("}");        }        return sb.toString();    }