code: public PhaseIdType[] getRestrictedPhaseIds(Method restrictAtViewMethod, Annotation annotation) {
          PhaseIdType[] phaseIds;
          try {
              phaseIds = (PhaseIdType[]) restrictAtViewMethod.invoke(annotation);
          } catch (IllegalAccessException ex) {
              throw new IllegalArgumentException("restrictAtView method must be accessible", ex);
          } catch (InvocationTargetException ex) {
              throw new RuntimeException(ex);
          }
          return phaseIds;
      }
docs: Retrieve the default PhaseIdTypes defined by the restrictAtViewMethod in the annotation
  
  @param restrictAtViewMethod
  @param annotation
  @return PhaseIdTypes from the restrictAtViewMethod, null if empty