/*
(non-Javadoc)

@see org.restcomm.protocols.ss7.isup.ISUPMessageFactory#createRSC(int cic)
329172
public ResetCircuitMessage createRSC(int cic) {
        ResetCircuitMessage msg = createRSC();
        CircuitIdentificationCode code = this.parameterFactory.createCircuitIdentificationCode();
        code.setCIC(cic);
        msg.setCircuitIdentificationCode(code);
        return msg;
    }
1275616
public ConfusionMessage createCNF(int cic) {
        ConfusionMessage msg = createCNF();
        CircuitIdentificationCode code = this.parameterFactory.createCircuitIdentificationCode();
        code.setCIC(cic);
        msg.setCircuitIdentificationCode(code);
        return msg;
    }
256929
public UserPartTestMessage createUPT(int cic) {
        UserPartTestMessage msg = createUPT();
        CircuitIdentificationCode code = this.parameterFactory.createCircuitIdentificationCode();
        code.setCIC(cic);
        msg.setCircuitIdentificationCode(code);
        return msg;
    }
1127405
@Override
    public CircuitGroupQueryMessage createCQM() {
        CircuitGroupQueryMessage msg = new CircuitGroupQueryMessageImpl(_CQM_HOLDER.mandatoryCodes,
                _CQM_HOLDER.mandatoryVariableCodes, _CQM_HOLDER.optionalCodes, _CQM_HOLDER.mandatoryCodeToIndex,
                _CQM_HOLDER.mandatoryVariableCodeToIndex, _CQM_HOLDER.optionalCodeToIndex);
        return msg;
    }
191846
private ObjectNode createResponseSuccess(String jsonRpc, Object id, JsonNode result) {
		ObjectNode response = mapper.createObjectNode();
		response.put(JSONRPC, jsonRpc);
		if (Integer.class.isInstance(id)) {
			response.put(ID, Integer.class.cast(id).intValue());
		} else if (Long.class.isInstance(id)) {
			response.put(ID, Long.class.cast(id).longValue());
		} else if (Float.class.isInstance(id)) {
			response.put(ID, Float.class.cast(id).floatValue());
		} else if (Double.class.isInstance(id)) {
			response.put(ID, Double.class.cast(id).doubleValue());
		} else if (BigDecimal.class.isInstance(id)) {
			response.put(ID, BigDecimal.class.cast(id));
		} else {
			response.put(ID, String.class.cast(id));
		}
		response.set(RESULT, result);
		return response;
	}
613700
public SpatialReferenceSystem getOrCreateCode(String organization,
			long coordsysId) throws SQLException {

		SpatialReferenceSystem srs = queryForOrganizationCoordsysId(
				organization, coordsysId);

		srs = createIfNeeded(srs, organization, coordsysId);

		return srs;
	}
1178587
public SegmentationMessage createSGM(int cic) {
        SegmentationMessage msg = createSGM();
        CircuitIdentificationCode code = this.parameterFactory.createCircuitIdentificationCode();
        code.setCIC(cic);
        msg.setCircuitIdentificationCode(code);
        return msg;
    }
662160
@Override
    public CircuitGroupResetAckMessage createGRA(int cic) {
        CircuitGroupResetAckMessage msg = createGRA();
        CircuitIdentificationCode code = this.parameterFactory.createCircuitIdentificationCode();
        code.setCIC(cic);
        msg.setCircuitIdentificationCode(code);
        return msg;
    }
77272
@Override
    public CircuitGroupBlockingAckMessage createCGBA(int cic) {
        CircuitGroupBlockingAckMessage msg = createCGBA();
        CircuitIdentificationCode code = this.parameterFactory.createCircuitIdentificationCode();
        code.setCIC(cic);
        msg.setCircuitIdentificationCode(code);
        return msg;
    }
695331
public CircuitGroupQueryResponseMessage createCQR() {
        CircuitGroupQueryResponseMessage msg = new CircuitGroupQueryResponseMessageImpl(_CQR_HOLDER.mandatoryCodes,
                _CQR_HOLDER.mandatoryVariableCodes, _CQR_HOLDER.optionalCodes, _CQR_HOLDER.mandatoryCodeToIndex,
                _CQR_HOLDER.mandatoryVariableCodeToIndex, _CQR_HOLDER.optionalCodeToIndex);

        return msg;
    }
1136793
@Override
    public CircuitGroupResetMessage createGRS() {
        CircuitGroupResetMessage msg = new CircuitGroupResetMessageImpl(_GRS_HOLDER.mandatoryCodes,
                _GRS_HOLDER.mandatoryVariableCodes, _GRS_HOLDER.optionalCodes, _GRS_HOLDER.mandatoryCodeToIndex,
                _GRS_HOLDER.mandatoryVariableCodeToIndex, _GRS_HOLDER.optionalCodeToIndex);
        return msg;
    }
956586
public DOMSource createDOMSource(DocumentSource src)
    {
        try
        {
            Constructor<? extends DOMSource> constr = getDOMSourceClass().getConstructor(DocumentSource.class);
            return constr.newInstance(src);
        } catch (Exception e) {
            log.warn("BoxFactory: Warning: could not create the DOMSource instance: " + e.getMessage());
            return null;
        }
    }
992616
@Nonnull
  public static ClientCertificateValidationResult createSuccess (@Nonnull @Nonempty final String sClientID)
  {
    ValueEnforcer.notEmpty (sClientID, "ClientID");
    return new ClientCertificateValidationResult (true, sClientID);
  }
1271146
public BlockingMessage createBLO(int cic) {
        BlockingMessage msg = createBLO();
        CircuitIdentificationCode code = this.parameterFactory.createCircuitIdentificationCode();
        code.setCIC(cic);
        msg.setCircuitIdentificationCode(code);
        return msg;
    }
1303291
public FacilityRejectedMessage createFRJ(int cic) {
        FacilityRejectedMessage msg = createFRJ();
        CircuitIdentificationCode code = this.parameterFactory.createCircuitIdentificationCode();
        code.setCIC(cic);
        msg.setCircuitIdentificationCode(code);
        return msg;
    }
1035529
@Override
    public CircuitGroupUnblockingMessage createCGU() {
        CircuitGroupUnblockingMessage msg = new CircuitGroupUnblockingMessageImpl(_CGU_HOLDER.mandatoryCodes,
                _CGU_HOLDER.mandatoryVariableCodes, _CGU_HOLDER.optionalCodes, _CGU_HOLDER.mandatoryCodeToIndex,
                _CGU_HOLDER.mandatoryVariableCodeToIndex, _CGU_HOLDER.optionalCodeToIndex);

        return msg;
    }
1009471
public TrmMeBridgeReply createNewTrmMeBridgeReply() throws MessageCreateFailedException {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewTrmMeBridgeReply");
    TrmMeBridgeReply msg = null;
    try {
      msg = new TrmMeBridgeReplyImpl();
    }
    catch (MessageDecodeFailedException e) {
      /* No need to FFDC this as JsMsgObject will already have done so */
      // No FFDC code needed
      throw new MessageCreateFailedException(e);
    }
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "createNewTrmMeBridgeReply");
    return msg;
  }