* @return
* the Change Password Server Transport bean
*/
private TransportBean getChangePasswordServerTransportBean()
{
ChangePasswordServerBean changePasswordServerBean = getChangePasswordServerBean();
TransportBean transportBean = null;
// Looking for the transport in the list
TransportBean[] changePasswordServerTransportBeans = changePasswordServerBean.getTransports();
if ( changePasswordServerTransportBeans != null )
{
for ( TransportBean changePasswordServerTransportBean : changePasswordServerTransportBeans )
{
if ( "tcp".equals( changePasswordServerTransportBean.getTransportId() ) ) // TODO can either 'tcp' or 'udp' //$NON-NLS-1$
{
transportBean = changePasswordServerTransportBean;
break;
}
}
}
// No corresponding transport has been found
if ( transportBean == null )
{
transportBean = new TransportBean();
transportBean.setTransportId( "tcp" ); // TODO can either 'tcp' or 'udp' //$NON-NLS-1$
changePasswordServerBean.addTransports( transportBean );
}
return transportBean;
}