public IMarkerResolution[] getResolutions(IMarker marker) {
   if (isNeedToCreate(marker)) {
     IMutableValidator[] validators;
     try {
       MutableWorkspaceSettings workspaceSettings =
           ValidationFramework.getDefault().getWorkspaceSettings();
       validators = workspaceSettings.getValidators();
       if (DisableFaceletHTMLValidatorMarkerResolution.findValidator(validators, VALIDATOR_ID)
           != null) {
         return new IMarkerResolution[] {
           new DisableFaceletHTMLValidatorMarkerResolution((IFile) marker.getResource())
         };
       }
     } catch (InvocationTargetException e) {
       JsfUiPlugin.getPluginLog().logError(e);
     }
   }
   return new IMarkerResolution[] {};
 }
 public void validate() throws ValidationException {
   super.validate();
   String value = getValue();
   if (value != null) value = value.trim();
   if (value != null && value.length() > 0) {
     try {
       boolean b1 = value.matches("[#\\$]\\{[^#\\$\\}\\{]*\\}"); // $NON-NLS-1$
       if (!b1) {
         throw new ValidationException(JsfUIMessages.DataTableWizardPage_ValueMustBeSetWithEL);
       }
       boolean b2 =
           value.matches("[#\\$]\\{[^#\\$\\}\\{\\.]+(\\.[^#\\$\\}\\{\\.]+)*\\}"); // $NON-NLS-1$
       if (!b2) {
         throw new ValidationException(JsfUIMessages.DataTableWizardPage_ValueELNotCorrect);
       }
     } catch (PatternSyntaxException e) {
       JsfUiPlugin.getDefault().logError(e);
     }
   }
 }