}
final SmbizEntityType crntUserAccountType = (SmbizEntityType) crntUserAccount.getEntityType();
if(OP_ISPS.getText().equals(optionText)) {
return new StaticViewInitializer(IspListingView.klas);
}
if(OP_MERCHANTS.getText().equals(optionText)) {
assert crntUserAccountType == SmbizEntityType.ISP;
return new MerchantListingViewInitializer(currentUser.getKey());
}
if(OP_CUSTOMERS.getText().equals(optionText)) {
assert crntUserAccountType == SmbizEntityType.MERCHANT;
return new CustomerListingViewInitializer(currentUser.getKey(), null);
}
if(OP_INTERFACES.getText().equals(optionText)) {
assert crntUserAccountType == SmbizEntityType.ASP;
return new StaticViewInitializer(InterfacesView.klas);
}
if(OP_INTERFACES_ACCOUNT.getText().equals(optionText)) {
return new AccountInterfaceViewInitializer(currentAccount.getKey());
}