Class<InputStream> transformerClass =
(Class<InputStream>) TransformerAlgorithmMapper.getTransformerClass(
transformType.getAlgorithm(), XMLSecurityConstants.DIRECTION.IN);
try {
Constructor<InputStream> constructor = transformerClass.getConstructor(InputStream.class);
inputStream = new LimitingInputStream(
constructor.newInstance(inputStream),
maximumAllowedDecompressedBytes);
} catch (InvocationTargetException e) {
throw new XMLSecurityException(e);
} catch (NoSuchMethodException e) {