public boolean isSideEffect(String drugName, Severity severity,
      String sideEffect) {
    DrugCategory category = DrugCategory.getDrugCategory(drugName.trim());

    if (category == null) {
      throw new RuntimeException("Category not found. " + drugName.trim());
    }

    String answer = result[category.ordinal()][severity.ordinal()];

    if (answer == null || answer.isEmpty()) {
      return false;
    } else {

      String[] tokens = sideEffect.split(" ");
      boolean isSideEffect = false;
      for (String token : tokens) {
        isSideEffect = answer.toLowerCase().trim()
            .contains(token.toLowerCase().trim());
        if (isSideEffect) {
          return true;
        }
      }
      return false;
    }
  }