/**
  * Loads the relevant methods from a service and extracts the information relevant to raml.
  * Methods from the Object class are ignored
  *
  * @param clazz
  * @return
  */
 private void getMethodsFromService(
     Class<?> clazz, JavaDocStore javaDoc, RamlResource parentResource) {
   try {
     for (Method method : clazz.getMethods()) {
       if (!IGNORE_METHOD_REGEX.matcher(method.getName()).matches()
           && shouldAddMethodToApi(method)) {
         extractAndAppendResourceInfo(method, javaDoc.getJavaDoc(method), parentResource);
       }
     }
   } catch (NoClassDefFoundError nEx) {
     logger.error("Unable to get methods - skipping class " + clazz, nEx);
   }
 }