protected void validateIntOrEmpty(String... propertyName) throws RuntimeException {
  for (  String pn : propertyName) {
    String val=getProperty(pn);
    if (val.length() > 0) {
      Integer.parseInt(val);
    }
  }
}

protected void validateIntOrEmpty ( String ... propertyName ) throws RuntimeException { for ( String pn : propertyName ) { String val = getProperty ( pn ) ; if ( val . length ( ) > 0 ) { Integer . parseInt ( val ) ; } } }
validate that a set of properties is either empty or can be parsed as integers .
