private void setBasePathFromAnnotation() {
   for (Class<?> aClass : getValidClasses(SwaggerDefinition.class)) {
     SwaggerDefinition swaggerDefinition =
         AnnotationUtils.findAnnotation(aClass, SwaggerDefinition.class);
     basePath = swaggerDefinition.basePath();
   }
 }
 private void setHostFromAnnotation() {
   for (Class<?> aClass : getValidClasses(SwaggerDefinition.class)) {
     SwaggerDefinition swaggerDefinition =
         AnnotationUtils.findAnnotation(aClass, SwaggerDefinition.class);
     host = swaggerDefinition.host();
   }
 }
 private void setInfoFromAnnotation() {
   Info resultInfo = new Info();
   for (Class<?> aClass : getValidClasses(SwaggerDefinition.class)) {
     SwaggerDefinition swaggerDefinition =
         AnnotationUtils.findAnnotation(aClass, SwaggerDefinition.class);
     io.swagger.annotations.Info infoAnnotation = swaggerDefinition.info();
     Info info =
         new Info()
             .title(infoAnnotation.title())
             .description(infoAnnotation.description())
             .version(infoAnnotation.version())
             .termsOfService(infoAnnotation.termsOfService())
             .license(from(infoAnnotation.license()))
             .contact(from(infoAnnotation.contact()));
     resultInfo.mergeWith(info);
   }
   info = resultInfo;
 }