Collection<State> oStates = null;
if (client!=null) {
if (!client.isNull("country")) {
try {
connect();
Country oCntr = Countries.top(getSession()).getCountry(getSession(), client.getString("country"));
if (oCntr!=null)
oStates = oCntr.states(getSession()).list(getSession());
else
oStates = new ArrayList<State>();
disconnect();
} catch (Exception xcpt) {
Log.out.error(xcpt.getMessage(), xcpt);