/** * Convenience method for looking up and returning the service processing this. This might return null * if #getServiceName returns a name that is not registered in {@link com.yahoo.docproc.DocprocService}. * * @return the service processing this, or null if unknown. */ public DocprocService getService() { if (docprocServiceRegistry != null) { return docprocServiceRegistry.getComponent(getServiceName()); } return null; }