public void finalizeSentence(DependencyStructure dependencyGraph) throws MaltChainedException { try { method.finalizeSentence(dependencyGraph); } catch (NullPointerException e) { throw new GuideException("The learner cannot be found. ", e); } }