SignonForm frm = ( SignonForm ) form;
AccountValue account = frm.getAccountValue( );
String redirectUri = frm.getRedirectUri( );
PetstoreLocal petstore = getPetstore( );
if ( petstore.authenticate( account.getUserId( ), account.getPassword( ) ) )
{
CustomerValue cust = petstore.getCustomer( account.getUserId( ) );
initSession( cust, request );
if ( ( redirectUri == null ) || ( redirectUri.length( ) == 0 ) )