}
private LogicalInput createInput(InputSpec inputSpec, InputContext inputContext) {
LOG.info("Creating Input");
InputDescriptor inputDesc = inputSpec.getInputDescriptor();
Input input = ReflectionUtils.createClazzInstance(inputDesc.getClassName(),
new Class[]{InputContext.class, Integer.TYPE},
new Object[]{inputContext, inputSpec.getPhysicalEdgeCount()});
if (!(input instanceof LogicalInput)) {
throw new TezUncheckedException(inputDesc.getClass().getName()
+ " is not a sub-type of LogicalInput."