}
ISearchQuery query = null;
switch (data.getSearchFor()) {
case SEARCH_FOR_BEAN_NAME:
query = new BeanNameQuery(scope, data.getPattern(), data
.isCaseSensitive(), data.isRegExp());
break;
case SEARCH_FOR_BEAN_REFERENCE:
query = new BeanReferenceQuery(scope, data.getPattern(), data