@Override
    public boolean upgradeData(Source source, Result result) {
        final Transformer transformer;
        try {
            transformer = this.upgradeTemplates.newTransformer();
        } catch (TransformerConfigurationException e) {
            throw new RuntimeException(
                    "Failed to create new Transformer from the configured templates: "
                            + this.xslResource,
                    e);
        }

        try {
            transformer.transform(source, result);
        } catch (TransformerException e) {
            throw new RuntimeException(
                    "Failed to upgrade data using XSLT transformation: " + this.xslResource, e);
        }

        return true;
    }
@ Override public boolean upgradeData ( Source source , Result result ) { final Transformer transformer ; try { transformer = this . upgradeTemplates . newTransformer ( ) ; } catch ( TransformerConfigurationException e ) { throw new RuntimeException ( "Failed to create new Transformer from the configured templates: " + this . xslResource , e ) ; } try { transformer . transform ( source , result ) ; } catch ( TransformerException e ) { throw new RuntimeException ( "Failed to upgrade data using XSLT transformation: " + this . xslResource , e ) ; } return true ; }
/* (non-Javadoc)
@see org.apereo.portal.io.xml.IDataUpgrader#upgradeData(javax.xml.transform.Source, javax.xml.transform.Result)