if ((name.equals("translet-name")) && (value instanceof String))
if ((name.equals("translet-name")) && (value instanceof String)) {
    public void setAttribute(String name, Object value) 	throws IllegalArgumentException { 	// Set the default translet name (ie. class name), which will be used	// for translets that cannot be given a name from their system-id.	if ((name.equals("translet-name")) && (value instanceof String))	    _defaultTransletName = (String)value;	// Throw an exception for all other attributes	ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_INVALID_ATTR_ERR, name);	throw new IllegalArgumentException(err.toString());    }