To create an XI message, you use the message factory of the Adapter Framework messaging service.
Open XIMessageFactoryImpl.java and search for the character string CS_MSGFCT.
Open SPIManagedConnectionFactory.java and search for the character string CS_MSGCRE.