throw new EncoderException("Parameter supplied to Metaphone " + "encode is not of type " + "java.lang.String");
throw new EncoderException("Parameter supplied to Metaphone encode is not of type java.lang.String");
    public Object encode(Object obj) throws EncoderException {        if (!(obj instanceof String)) {            throw new EncoderException("Parameter supplied to Metaphone "                                        + "encode is not of type "                                        + "java.lang.String");         } else {            return doubleMetaphone((String) obj);        }    }