}
} else if (EsbInterfaceModel.ESB.equals(intfModel.getType())) {
EsbInterfaceModel esbIntf = (EsbInterfaceModel)intfModel;
validateEsbInterface(esbIntf);
if (esbIntf.getOutputType() == null) {
serviceInterface = new InOnlyService(new InOnlyOperation(
ServiceInterface.DEFAULT_OPERATION, esbIntf.getInputType()));
} else {
serviceInterface = new InOutService(new InOutOperation(
ServiceInterface.DEFAULT_OPERATION,
esbIntf.getInputType(), esbIntf.getOutputType(), esbIntf.getFaultType()));