public CharSequence decorateOnSuccessScript(CharSequence script) {
   IVeilScope veilScope = getVeilScope();
   if (veilScope != null) {
     return script
         + ";if(Wicket.Veil){"
         + VeilResources.Javascript.Generic.toggle(veilScope.getVeilId())
         + ";};";
   }
   return script
       + ";if(Wicket.Veil){"
       + VeilResources.Javascript.Generic.toggle("AT_body")
       + ";};";
 }
 public CharSequence decorateOnFailureScript(CharSequence script) {
   IVeilScope veilScope = getVeilScope();
   String errorMessage =
       ";alert('"
           + this.veilFinder.getDefiningComponent().getString("ServerDown", null, "Server Down!")
           + "');";
   if (veilScope != null) {
     return script
         + ";if(Wicket.Veil){"
         + VeilResources.Javascript.Generic.toggle(veilScope.getVeilId())
         + ";};"
         + errorMessage;
   }
   return script
       + ";if(Wicket.Veil){"
       + VeilResources.Javascript.Generic.toggle("AT_body")
       + ";};"
       + errorMessage;
 }