Could you change the format of your code so as it is more consistent with the standard we follow?
Just remove any tab and indent your code with 2 spaces, also open curly brackets in the same line 

public ListBoxModel doFillComparisonTypeItems() {
}
if (....) {
} else if {
} else {
}

and finally related with comments, use javadoc format for functions, and put c++ comments above the code you are reffering to

/**
* populate the comparison type option dynamically based ...
*/
public ListBoxModel doFillComparisonTypeItems() { ...

//getting the user selected value
String temp = getOptionType();