// validate generic parameters chosen are correct or
// throw IllegalArgumentException, halting execution.
@SuppressWarnings("rawtypes")
GiraphConfigurationValidator<?, ?, ?, ?, ?> gtv =
new GiraphConfigurationValidator(giraphConf);
gtv.validateConfiguration();
// successfully populated/validated GiraphConfiguration, ready to run job
return cmd;
}