javax.xml.stream.Location is already there as an import there is no need to use the FQCN in the handleDtd method.