private static <F extends OWLPropertyRange> OWLClass getTarget(OWLQuantifiedRestriction<?,?,F> ex) throws RendererException { if(ex.getFiller() instanceof OWLClass) { return (OWLClass)ex.getFiller(); } else { throw new RendererException("Filler of class expression not a simple unary OWL class: " + ex); } }