1
2
3
4
5 package org.andromda.cartridges.bpm4struts.metafacades;
6
7 import java.util.Collection;
8 import java.util.List;
9 import java.util.Map;
10 import org.andromda.core.common.Introspector;
11 import org.andromda.core.metafacade.MetafacadeBase;
12 import org.andromda.core.metafacade.MetafacadeFactory;
13 import org.andromda.core.metafacade.ModelValidationMessage;
14 import org.andromda.metafacades.uml.ActionFacade;
15 import org.andromda.metafacades.uml.ConstraintFacade;
16 import org.andromda.metafacades.uml.DependencyFacade;
17 import org.andromda.metafacades.uml.EventFacade;
18 import org.andromda.metafacades.uml.FrontEndAction;
19 import org.andromda.metafacades.uml.FrontEndActivityGraph;
20 import org.andromda.metafacades.uml.FrontEndControllerOperation;
21 import org.andromda.metafacades.uml.FrontEndEvent;
22 import org.andromda.metafacades.uml.FrontEndExceptionHandler;
23 import org.andromda.metafacades.uml.FrontEndParameter;
24 import org.andromda.metafacades.uml.FrontEndUseCase;
25 import org.andromda.metafacades.uml.GuardFacade;
26 import org.andromda.metafacades.uml.ModelElementFacade;
27 import org.andromda.metafacades.uml.ModelFacade;
28 import org.andromda.metafacades.uml.PackageFacade;
29 import org.andromda.metafacades.uml.StateMachineFacade;
30 import org.andromda.metafacades.uml.StateVertexFacade;
31 import org.andromda.metafacades.uml.StereotypeFacade;
32 import org.andromda.metafacades.uml.TaggedValueFacade;
33 import org.andromda.metafacades.uml.TemplateParameterFacade;
34 import org.andromda.metafacades.uml.TypeMappings;
35 import org.andromda.translation.ocl.validation.OCLExpressions;
36 import org.andromda.translation.ocl.validation.OCLIntrospector;
37 import org.andromda.translation.ocl.validation.OCLResultEnsurer;
38 import org.apache.log4j.Logger;
39
40
41
42
43
44
45
46
47 public abstract class StrutsExceptionHandlerLogic
48 extends MetafacadeBase
49 implements StrutsExceptionHandler
50 {
51
52
53
54
55 protected Object metaObject;
56
57
58
59
60
61 protected StrutsExceptionHandlerLogic(Object metaObjectIn, String context)
62 {
63 super(metaObjectIn, getContext(context));
64 this.superFrontEndExceptionHandler =
65 (FrontEndExceptionHandler)
66 MetafacadeFactory.getInstance().createFacadeImpl(
67 "org.andromda.metafacades.uml.FrontEndExceptionHandler",
68 metaObjectIn,
69 getContext(context));
70 this.superStrutsForward =
71 (StrutsForward)
72 MetafacadeFactory.getInstance().createFacadeImpl(
73 "org.andromda.cartridges.bpm4struts.metafacades.StrutsForward",
74 metaObjectIn,
75 getContext(context));
76 this.metaObject = metaObjectIn;
77 }
78
79
80
81
82 private static final Logger logger = Logger.getLogger(StrutsExceptionHandlerLogic.class);
83
84
85
86
87
88
89 private static String getContext(String context)
90 {
91 if (context == null)
92 {
93 context = "org.andromda.cartridges.bpm4struts.metafacades.StrutsExceptionHandler";
94 }
95 return context;
96 }
97
98 private FrontEndExceptionHandler superFrontEndExceptionHandler;
99 private boolean superFrontEndExceptionHandlerInitialized = false;
100
101
102
103
104
105 protected FrontEndExceptionHandler getSuperFrontEndExceptionHandler()
106 {
107 if (!this.superFrontEndExceptionHandlerInitialized)
108 {
109 ((MetafacadeBase)this.superFrontEndExceptionHandler).setMetafacadeContext(this.getMetafacadeContext());
110 this.superFrontEndExceptionHandlerInitialized = true;
111 }
112 return this.superFrontEndExceptionHandler;
113 }
114
115 private StrutsForward superStrutsForward;
116 private boolean superStrutsForwardInitialized = false;
117
118
119
120
121
122 protected StrutsForward getSuperStrutsForward()
123 {
124 if (!this.superStrutsForwardInitialized)
125 {
126 ((MetafacadeBase)this.superStrutsForward).setMetafacadeContext(this.getMetafacadeContext());
127 this.superStrutsForwardInitialized = true;
128 }
129 return this.superStrutsForward;
130 }
131
132
133
134
135
136 @Override
137 public void resetMetafacadeContext(String context)
138 {
139 if (!this.contextRoot)
140 {
141 context = getContext(context);
142 setMetafacadeContext (context);
143 if (this.superFrontEndExceptionHandlerInitialized)
144 {
145 ((MetafacadeBase)this.superFrontEndExceptionHandler).resetMetafacadeContext(context);
146 }
147 if (this.superStrutsForwardInitialized)
148 {
149 ((MetafacadeBase)this.superStrutsForward).resetMetafacadeContext(context);
150 }
151 }
152 }
153
154
155
156
157
158 public boolean isStrutsExceptionHandlerMetaType()
159 {
160 return true;
161 }
162
163
164
165
166
167
168
169 protected abstract String handleGetExceptionKey();
170
171 private String __exceptionKey1a;
172 private boolean __exceptionKey1aSet = false;
173
174
175
176
177
178
179 public final String getExceptionKey()
180 {
181 String exceptionKey1a = this.__exceptionKey1a;
182 if (!this.__exceptionKey1aSet)
183 {
184
185 exceptionKey1a = handleGetExceptionKey();
186
187 this.__exceptionKey1a = exceptionKey1a;
188 if (isMetafacadePropertyCachingEnabled())
189 {
190 this.__exceptionKey1aSet = true;
191 }
192 }
193 return exceptionKey1a;
194 }
195
196
197
198
199
200 protected abstract String handleGetExceptionType();
201
202 private String __exceptionType2a;
203 private boolean __exceptionType2aSet = false;
204
205
206
207
208
209 public final String getExceptionType()
210 {
211 String exceptionType2a = this.__exceptionType2a;
212 if (!this.__exceptionType2aSet)
213 {
214
215 exceptionType2a = handleGetExceptionType();
216
217 this.__exceptionType2a = exceptionType2a;
218 if (isMetafacadePropertyCachingEnabled())
219 {
220 this.__exceptionType2aSet = true;
221 }
222 }
223 return exceptionType2a;
224 }
225
226
227
228
229
230 protected abstract String handleGetExceptionPath();
231
232 private String __exceptionPath3a;
233 private boolean __exceptionPath3aSet = false;
234
235
236
237
238
239
240 public final String getExceptionPath()
241 {
242 String exceptionPath3a = this.__exceptionPath3a;
243 if (!this.__exceptionPath3aSet)
244 {
245
246 exceptionPath3a = handleGetExceptionPath();
247
248 this.__exceptionPath3a = exceptionPath3a;
249 if (isMetafacadePropertyCachingEnabled())
250 {
251 this.__exceptionPath3aSet = true;
252 }
253 }
254 return exceptionPath3a;
255 }
256
257
258
259
260
261 protected abstract String handleGetMessageKey();
262
263 private String __messageKey4a;
264 private boolean __messageKey4aSet = false;
265
266
267
268
269
270
271 public final String getMessageKey()
272 {
273 String messageKey4a = this.__messageKey4a;
274 if (!this.__messageKey4aSet)
275 {
276
277 messageKey4a = handleGetMessageKey();
278
279 this.__messageKey4a = messageKey4a;
280 if (isMetafacadePropertyCachingEnabled())
281 {
282 this.__messageKey4aSet = true;
283 }
284 }
285 return messageKey4a;
286 }
287
288
289
290
291
292
293
294 public boolean isFrontEndExceptionHandlerMetaType()
295 {
296 return true;
297 }
298
299
300
301
302
303 public boolean isStrutsForwardMetaType()
304 {
305 return true;
306 }
307
308
309
310
311
312 public boolean isFrontEndForwardMetaType()
313 {
314 return true;
315 }
316
317
318
319
320
321 public boolean isTransitionFacadeMetaType()
322 {
323 return true;
324 }
325
326
327
328
329
330 public boolean isModelElementFacadeMetaType()
331 {
332 return true;
333 }
334
335
336
337
338
339
340 public boolean isFrontEndException()
341 {
342 return this.getSuperFrontEndExceptionHandler().isFrontEndException();
343 }
344
345
346
347
348
349 public String getActionMethodName()
350 {
351 return this.getSuperFrontEndExceptionHandler().getActionMethodName();
352 }
353
354
355
356
357
358 public List<FrontEndAction> getActions()
359 {
360 return this.getSuperFrontEndExceptionHandler().getActions();
361 }
362
363
364
365
366
367 public FrontEndEvent getDecisionTrigger()
368 {
369 return this.getSuperFrontEndExceptionHandler().getDecisionTrigger();
370 }
371
372
373
374
375
376 public List<FrontEndParameter> getForwardParameters()
377 {
378 return this.getSuperFrontEndExceptionHandler().getForwardParameters();
379 }
380
381
382
383
384
385 public FrontEndActivityGraph getFrontEndActivityGraph()
386 {
387 return this.getSuperFrontEndExceptionHandler().getFrontEndActivityGraph();
388 }
389
390
391
392
393
394 public FrontEndControllerOperation getOperationCall()
395 {
396 return this.getSuperFrontEndExceptionHandler().getOperationCall();
397 }
398
399
400
401
402
403 public FrontEndUseCase getUseCase()
404 {
405 return this.getSuperFrontEndExceptionHandler().getUseCase();
406 }
407
408
409
410
411
412 public boolean isContainedInFrontEndUseCase()
413 {
414 return this.getSuperFrontEndExceptionHandler().isContainedInFrontEndUseCase();
415 }
416
417
418
419
420
421 public boolean isEnteringView()
422 {
423 return this.getSuperFrontEndExceptionHandler().isEnteringView();
424 }
425
426
427
428
429
430 public boolean isExitingView()
431 {
432 return this.getSuperFrontEndExceptionHandler().isExitingView();
433 }
434
435
436
437
438
439 public void copyTaggedValues(ModelElementFacade element)
440 {
441 this.getSuperFrontEndExceptionHandler().copyTaggedValues(element);
442 }
443
444
445
446
447
448
449 public Object findTaggedValue(String tagName)
450 {
451 return this.getSuperFrontEndExceptionHandler().findTaggedValue(tagName);
452 }
453
454
455
456
457
458
459 public Collection<Object> findTaggedValues(String tagName)
460 {
461 return this.getSuperFrontEndExceptionHandler().findTaggedValues(tagName);
462 }
463
464
465
466
467
468
469
470 public String getBindedFullyQualifiedName(ModelElementFacade bindedElement)
471 {
472 return this.getSuperFrontEndExceptionHandler().getBindedFullyQualifiedName(bindedElement);
473 }
474
475
476
477
478
479 public Collection<ConstraintFacade> getConstraints()
480 {
481 return this.getSuperFrontEndExceptionHandler().getConstraints();
482 }
483
484
485
486
487
488
489 public Collection<ConstraintFacade> getConstraints(String kind)
490 {
491 return this.getSuperFrontEndExceptionHandler().getConstraints(kind);
492 }
493
494
495
496
497
498
499
500 public String getDocumentation(String indent)
501 {
502 return this.getSuperFrontEndExceptionHandler().getDocumentation(indent);
503 }
504
505
506
507
508
509
510
511
512 public String getDocumentation(String indent, int lineLength)
513 {
514 return this.getSuperFrontEndExceptionHandler().getDocumentation(indent, lineLength);
515 }
516
517
518
519
520
521
522
523 public String getDocumentation(String indent, int lineLength, boolean htmlStyle)
524 {
525 return this.getSuperFrontEndExceptionHandler().getDocumentation(indent, lineLength, htmlStyle);
526 }
527
528
529
530
531
532 public String getFullyQualifiedName()
533 {
534 return this.getSuperFrontEndExceptionHandler().getFullyQualifiedName();
535 }
536
537
538
539
540
541
542
543
544 public String getFullyQualifiedName(boolean modelName)
545 {
546 return this.getSuperFrontEndExceptionHandler().getFullyQualifiedName(modelName);
547 }
548
549
550
551
552
553
554 public String getFullyQualifiedNamePath()
555 {
556 return this.getSuperFrontEndExceptionHandler().getFullyQualifiedNamePath();
557 }
558
559
560
561
562
563 public String getId()
564 {
565 return this.getSuperFrontEndExceptionHandler().getId();
566 }
567
568
569
570
571
572
573
574
575
576 public Collection<String> getKeywords()
577 {
578 return this.getSuperFrontEndExceptionHandler().getKeywords();
579 }
580
581
582
583
584
585 public String getLabel()
586 {
587 return this.getSuperFrontEndExceptionHandler().getLabel();
588 }
589
590
591
592
593
594 public TypeMappings getLanguageMappings()
595 {
596 return this.getSuperFrontEndExceptionHandler().getLanguageMappings();
597 }
598
599
600
601
602
603
604 public ModelFacade getModel()
605 {
606 return this.getSuperFrontEndExceptionHandler().getModel();
607 }
608
609
610
611
612
613 public String getName()
614 {
615 return this.getSuperFrontEndExceptionHandler().getName();
616 }
617
618
619
620
621
622 public ModelElementFacade getPackage()
623 {
624 return this.getSuperFrontEndExceptionHandler().getPackage();
625 }
626
627
628
629
630
631 public String getPackageName()
632 {
633 return this.getSuperFrontEndExceptionHandler().getPackageName();
634 }
635
636
637
638
639
640
641 public String getPackageName(boolean modelName)
642 {
643 return this.getSuperFrontEndExceptionHandler().getPackageName(modelName);
644 }
645
646
647
648
649
650 public String getPackagePath()
651 {
652 return this.getSuperFrontEndExceptionHandler().getPackagePath();
653 }
654
655
656
657
658
659
660
661
662 public String getQualifiedName()
663 {
664 return this.getSuperFrontEndExceptionHandler().getQualifiedName();
665 }
666
667
668
669
670
671 public PackageFacade getRootPackage()
672 {
673 return this.getSuperFrontEndExceptionHandler().getRootPackage();
674 }
675
676
677
678
679
680 public Collection<DependencyFacade> getSourceDependencies()
681 {
682 return this.getSuperFrontEndExceptionHandler().getSourceDependencies();
683 }
684
685
686
687
688
689
690 public StateMachineFacade getStateMachineContext()
691 {
692 return this.getSuperFrontEndExceptionHandler().getStateMachineContext();
693 }
694
695
696
697
698
699 public Collection<String> getStereotypeNames()
700 {
701 return this.getSuperFrontEndExceptionHandler().getStereotypeNames();
702 }
703
704
705
706
707
708 public Collection<StereotypeFacade> getStereotypes()
709 {
710 return this.getSuperFrontEndExceptionHandler().getStereotypes();
711 }
712
713
714
715
716
717 public Collection<TaggedValueFacade> getTaggedValues()
718 {
719 return this.getSuperFrontEndExceptionHandler().getTaggedValues();
720 }
721
722
723
724
725
726 public Collection<DependencyFacade> getTargetDependencies()
727 {
728 return this.getSuperFrontEndExceptionHandler().getTargetDependencies();
729 }
730
731
732
733
734
735 public Object getTemplateParameter(String parameterName)
736 {
737 return this.getSuperFrontEndExceptionHandler().getTemplateParameter(parameterName);
738 }
739
740
741
742
743
744 public Collection<TemplateParameterFacade> getTemplateParameters()
745 {
746 return this.getSuperFrontEndExceptionHandler().getTemplateParameters();
747 }
748
749
750
751
752
753
754 public String getVisibility()
755 {
756 return this.getSuperFrontEndExceptionHandler().getVisibility();
757 }
758
759
760
761
762
763
764 public boolean hasExactStereotype(String stereotypeName)
765 {
766 return this.getSuperFrontEndExceptionHandler().hasExactStereotype(stereotypeName);
767 }
768
769
770
771
772
773
774 public boolean hasKeyword(String keywordName)
775 {
776 return this.getSuperFrontEndExceptionHandler().hasKeyword(keywordName);
777 }
778
779
780
781
782
783
784
785
786
787
788
789
790
791 public boolean hasStereotype(String stereotypeName)
792 {
793 return this.getSuperFrontEndExceptionHandler().hasStereotype(stereotypeName);
794 }
795
796
797
798
799
800
801 public boolean isBindingDependenciesPresent()
802 {
803 return this.getSuperFrontEndExceptionHandler().isBindingDependenciesPresent();
804 }
805
806
807
808
809
810 public boolean isConstraintsPresent()
811 {
812 return this.getSuperFrontEndExceptionHandler().isConstraintsPresent();
813 }
814
815
816
817
818
819 public boolean isDocumentationPresent()
820 {
821 return this.getSuperFrontEndExceptionHandler().isDocumentationPresent();
822 }
823
824
825
826
827
828 public boolean isReservedWord()
829 {
830 return this.getSuperFrontEndExceptionHandler().isReservedWord();
831 }
832
833
834
835
836
837
838 public boolean isTemplateParametersPresent()
839 {
840 return this.getSuperFrontEndExceptionHandler().isTemplateParametersPresent();
841 }
842
843
844
845
846
847
848
849 public boolean isValidIdentifierName()
850 {
851 return this.getSuperFrontEndExceptionHandler().isValidIdentifierName();
852 }
853
854
855
856
857
858
859
860 public String translateConstraint(String name, String translation)
861 {
862 return this.getSuperFrontEndExceptionHandler().translateConstraint(name, translation);
863 }
864
865
866
867
868
869 public String[] translateConstraints(String translation)
870 {
871 return this.getSuperFrontEndExceptionHandler().translateConstraints(translation);
872 }
873
874
875
876
877
878 public String[] translateConstraints(String kind, String translation)
879 {
880 return this.getSuperFrontEndExceptionHandler().translateConstraints(kind, translation);
881 }
882
883
884
885
886
887
888
889
890
891
892
893 public ActionFacade getEffect()
894 {
895 return this.getSuperFrontEndExceptionHandler().getEffect();
896 }
897
898
899
900
901
902
903
904
905
906 public GuardFacade getGuard()
907 {
908 return this.getSuperFrontEndExceptionHandler().getGuard();
909 }
910
911
912
913
914
915
916
917 public StateVertexFacade getSource()
918 {
919 return this.getSuperFrontEndExceptionHandler().getSource();
920 }
921
922
923
924
925
926
927
928 public StateVertexFacade getTarget()
929 {
930 return this.getSuperFrontEndExceptionHandler().getTarget();
931 }
932
933
934
935
936
937 public EventFacade getTrigger()
938 {
939 return this.getSuperFrontEndExceptionHandler().getTrigger();
940 }
941
942
943
944
945
946
947 public boolean isEnteringActionState()
948 {
949 return this.getSuperFrontEndExceptionHandler().isEnteringActionState();
950 }
951
952
953
954
955
956
957 public boolean isEnteringDecisionPoint()
958 {
959 return this.getSuperFrontEndExceptionHandler().isEnteringDecisionPoint();
960 }
961
962
963
964
965
966
967 public boolean isEnteringFinalState()
968 {
969 return this.getSuperFrontEndExceptionHandler().isEnteringFinalState();
970 }
971
972
973
974
975
976
977 public boolean isExitingActionState()
978 {
979 return this.getSuperFrontEndExceptionHandler().isExitingActionState();
980 }
981
982
983
984
985
986
987 public boolean isExitingDecisionPoint()
988 {
989 return this.getSuperFrontEndExceptionHandler().isExitingDecisionPoint();
990 }
991
992
993
994
995
996
997 public boolean isExitingInitialState()
998 {
999 return this.getSuperFrontEndExceptionHandler().isExitingInitialState();
1000 }
1001
1002
1003
1004
1005
1006 public boolean isTriggerPresent()
1007 {
1008 return this.getSuperFrontEndExceptionHandler().isTriggerPresent();
1009 }
1010
1011
1012
1013
1014
1015
1016
1017 public String getForwardName()
1018 {
1019 return this.getSuperStrutsForward().getForwardName();
1020 }
1021
1022
1023
1024
1025
1026 public String getForwardPath()
1027 {
1028 return this.getSuperStrutsForward().getForwardPath();
1029 }
1030
1031
1032
1033
1034
1035
1036 public String getGuardName()
1037 {
1038 return this.getSuperStrutsForward().getGuardName();
1039 }
1040
1041
1042
1043
1044
1045
1046 public StrutsActivityGraph getStrutsActivityGraph()
1047 {
1048 return this.getSuperStrutsForward().getStrutsActivityGraph();
1049 }
1050
1051
1052
1053
1054
1055 public Map getSuccessMessages()
1056 {
1057 return this.getSuperStrutsForward().getSuccessMessages();
1058 }
1059
1060
1061
1062
1063
1064
1065 public String getTargetNameKey()
1066 {
1067 return this.getSuperStrutsForward().getTargetNameKey();
1068 }
1069
1070
1071
1072
1073
1074 public Map getWarningMessages()
1075 {
1076 return this.getSuperStrutsForward().getWarningMessages();
1077 }
1078
1079
1080
1081
1082
1083 public boolean isEnteringPage()
1084 {
1085 return this.getSuperStrutsForward().isEnteringPage();
1086 }
1087
1088
1089
1090
1091
1092 public boolean isExitingPage()
1093 {
1094 return this.getSuperStrutsForward().isExitingPage();
1095 }
1096
1097
1098
1099
1100
1101
1102 public boolean isSuccessMessagesPresent()
1103 {
1104 return this.getSuperStrutsForward().isSuccessMessagesPresent();
1105 }
1106
1107
1108
1109
1110
1111
1112 public boolean isWarningMessagesPresent()
1113 {
1114 return this.getSuperStrutsForward().isWarningMessagesPresent();
1115 }
1116
1117
1118
1119
1120 @Override
1121 public void initialize()
1122 {
1123 this.getSuperFrontEndExceptionHandler().initialize();
1124 this.getSuperStrutsForward().initialize();
1125 }
1126
1127
1128
1129
1130
1131 @Override
1132 public Object getValidationOwner()
1133 {
1134 Object owner = this.getSuperFrontEndExceptionHandler().getValidationOwner();
1135 if (owner == null)
1136 {
1137 owner = this.getSuperStrutsForward().getValidationOwner();
1138 }
1139 return owner;
1140 }
1141
1142
1143
1144
1145
1146 @Override
1147 public String getValidationName()
1148 {
1149 String name = this.getSuperFrontEndExceptionHandler().getValidationName();
1150 if (name == null)
1151 {
1152 name = this.getSuperStrutsForward().getValidationName();
1153 }
1154 return name;
1155 }
1156
1157
1158
1159
1160
1161
1162
1163
1164 @Override
1165 public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
1166 {
1167 this.getSuperFrontEndExceptionHandler().validateInvariants(validationMessages);
1168 this.getSuperStrutsForward().validateInvariants(validationMessages);
1169 try
1170 {
1171 final Object contextElement = this.THIS();
1172 boolean constraintValid = OCLResultEnsurer.ensure((Boolean.valueOf(String.valueOf(OCLExpressions.equal(OCLIntrospector.invoke(contextElement,"enteringPage"),false))).booleanValue()?Boolean.valueOf(String.valueOf(OCLIntrospector.invoke(contextElement,"enteringFinalState"))).booleanValue():true));
1173 if (!constraintValid)
1174 {
1175 validationMessages.add(
1176 new ModelValidationMessage(
1177 (MetafacadeBase)contextElement ,
1178 "org::andromda::cartridges::bpm4struts::metafacades::StrutsExceptionHandler::must target page or final state",
1179 "When you model an action-exception you must either target a FrontEndView action state or a final state."));
1180 }
1181 }
1182 catch (Throwable th)
1183 {
1184 Throwable cause = th.getCause();
1185 int depth = 0;
1186 while (cause != null && depth < 7)
1187 {
1188 th = cause;
1189 depth++;
1190 }
1191 logger.error("Error validating constraint 'org::andromda::cartridges::bpm4struts::metafacades::StrutsExceptionHandler::must target page or final state' ON "
1192 + this.THIS().toString() + ": " + th.getMessage(), th);
1193 }
1194 }
1195
1196
1197
1198
1199 private static final String NAME_PROPERTY = "name";
1200 private static final String FQNAME_PROPERTY = "fullyQualifiedName";
1201
1202
1203
1204
1205 @Override
1206 public String toString()
1207 {
1208 final StringBuilder toString = new StringBuilder(this.getClass().getName());
1209 toString.append("[");
1210 try
1211 {
1212 toString.append(Introspector.instance().getProperty(this, FQNAME_PROPERTY));
1213 }
1214 catch (final Throwable tryAgain)
1215 {
1216 try
1217 {
1218 toString.append(Introspector.instance().getProperty(this, NAME_PROPERTY));
1219 }
1220 catch (final Throwable ignore)
1221 {
1222
1223 }
1224 }
1225 toString.append("]");
1226 return toString.toString();
1227 }
1228 }