class ReportUnitResourceValidator extends GenericResourceValidator<T> {

    protected boolean isJrxmlValid(ResourceReference jrxmlReference) {
        boolean isValid = true;
        try {
            byte[] data = null;
            if (jrxmlReference.isLocal()) {
                data = ((FileResource) jrxmlReference.getLocalResource()).getData();
            }
            if (data == null) {
                data = repositoryService.getResourceData(null, jrxmlReference.getTargetURI()).getData();
            }
            loadJasperDesign(data);
        } catch (Exception e) {
            isValid = false;
        }
        return isValid;
    }

}