private void validateConfigurationProperties(final HashMap props){
  for (  Object o : props.keySet()) {
    String propertyName=(String)o;
    Object value=null;
    try {
      Method method=getters.get(propertyName);
      if (method != null) {
        value=method.invoke(this,new Object[]{});
      }
    }
 catch (    Exception e) {
      if (e instanceof RuntimeException) {
        throw (RuntimeException)e;
      }
      if (e.getCause() instanceof RuntimeException) {
        throw (RuntimeException)e.getCause();
      }
 else {
        throw new InternalGemFireException("error invoking getter for property" + propertyName);
      }
    }
    checkAttribute(propertyName,value);
  }
}

private void validateConfigurationProperties ( final HashMap props ) { for ( Object o : props . keySet ( ) ) { String propertyName = ( String ) o ; Object value = null ; try { Method method = getters . get ( propertyName ) ; if ( method != null ) { value = method . invoke ( this , new Object [ ] { } ) ; } } catch ( Exception e ) { if ( e instanceof RuntimeException ) { throw ( RuntimeException ) e ; } if ( e . getCause ( ) instanceof RuntimeException ) { throw ( RuntimeException ) e . getCause ( ) ; } else { throw new InternalGemFireException ( "error invoking getter for property" + propertyName ) ; } } checkAttribute ( propertyName , value ) ; } }
here we will validate the correctness of the set properties as per the checkattributechecker annotations defined in # abstractdistributionconfig
