Collection serverCollection =
securityFacade_.getServerProfiles();
Iterator serverIter = serverCollection.iterator();
int i = 0;
while (serverIter.hasNext())
{
serverProfile_ = (ServerProfile)serverIter.next();
String vargs[] = { String.valueOf(i),
serverProfile_.getDisplayLabel(),
serverProfile_.getUID() };
System.out.println(getMessage("login.profile",vargs));
// if no server profile requested to program
// parameters, select the first one
if ( serverUID_ == null )
break;
// otherwise check to see if the server profile
// matches the one passed
if (serverProfile_.getUID().equalsIgnoreCase(serverUID_))
break;
// set to null if not found
serverProfile_ = null;
i++;