<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_modelinsertion(cls, model, indent) -> str: """Return the insertion string required for the given application model. <element name="inputs" minOccurs="0"> <complexType> <sequence> <element name="p" minOccurs="0"/> </element> <element name="fluxes" minOccurs="0"> </element> <element name="states" minOccurs="0"> </element> """

        texts = []
        for name in ('inputs', 'fluxes', 'states'):
            subsequences = getattr(model.sequences, name, None)
            if subsequences:
                texts.append(
                    cls.get_subsequencesinsertion(subsequences, indent))
        return '\n'.join(texts)