for ( int j = 0; j < result.length(); j++ ) {
setting = result.get( j );
if ( "favorites".equalsIgnoreCase( setting.getName() ) ) { //$NON-NLS-1$
try {
// handle favorite
JSONArray favorites = JSONParser.parseLenient( setting.getValue() ).isArray();
if ( favorites != null ) {
// Create the FavoritePickList object from the JSONArray
favoritePickList = FavoritePickList.getInstanceFromJSON( favorites );
} else {
favoritePickList = FavoritePickList.getInstance();
}
} catch ( Throwable t ) {
//ignore
}
} else if ( "recent".equalsIgnoreCase( setting.getName() ) ) { //$NON-NLS-1$
try {
// handle recent
JSONArray recents = JSONParser.parseLenient( setting.getValue() ).isArray();
if ( recents != null ) {
// Create the RecentPickList object from the JSONArray
recentPickList = RecentPickList.getInstanceFromJSON( recents );
} else {
recentPickList = RecentPickList.getInstance();