if( dialog == null )
{
dialog = ADialogBuilder.buildDialog( Form.class );
dialog.getFormField( Form.SERVICENAME ).addFormFieldValidator(
new RequiredValidator( "Service Name is required" ) );
dialog.getFormField( Form.SERVICENAME ).addFormFieldValidator( new XFormFieldValidator()
{
public ValidationMessage[] validateField( XFormField formField )
{
if( currentProject.getInterfaceByName( formField.getValue() ) != null )