/*
  * (non-Javadoc)
  * @see org.eclipse.core.databinding.validation.IValidator#validate(java.lang.Object)
  */
 @Override
 public IStatus validate(final Object value) {
   final String content = inputExpression.getContent();
   final WebPageRepositoryStore repositoryStore =
       repositoryAccessor.getRepositoryStore(WebPageRepositoryStore.class);
   String errorMessage = null;
   if (ProcessPackage.Literals.RECAP_FLOW__OVERVIEW_FORM_MAPPING.equals(feature)) {
     errorMessage = Messages.bind(Messages.pageDoesntExist, content);
   } else {
     errorMessage = Messages.bind(Messages.formDoesntExist, content);
   }
   return repositoryStore.getChild(content) == null
       ? ValidationStatus.error(errorMessage)
       : ValidationStatus.ok();
 }
 /*
  * (non-Javadoc)
  * @see org.eclipse.core.databinding.validation.IValidator#validate(java.lang.Object)
  */
 @Override
 public IStatus validate(final Object value) {
   final String content = inputExpression.getContent();
   final WebPageRepositoryStore repositoryStore =
       repositoryAccessor.getRepositoryStore(WebPageRepositoryStore.class);
   return repositoryStore.getChild(content) == null
       ? ValidationStatus.error(
           Messages.bind(
               Messages.pageDoesntExists,
               String.format("%s (%s)", inputExpression.getName(), content)))
       : ValidationStatus.ok();
 }