/** * If the underlying element is annotated with @ServiceConfig, then this method returns * the value of the @ServiceConfig annotation. In all other cases this method returns null. * @return */ public Class<?> getServiceConfigClass() { if (method.isAnnotationPresent(ServiceConfig.class)) { return method.getAnnotation(ServiceConfig.class).value(); } return null; }