private String[] fetchTypesPackageName(final Token token, final Ir ir)
    {
        if (!shouldSupportTypesPackageNames)
        {
            return ir.namespaces();
        }

        if (token.packageName() != null)
        {
            return Ir.getNamespaces(token.packageName());
        }

        return ir.namespaces();
    }
Generate the composites for dealing with the message header.

@throws IOException if an error is encountered when writing the output.
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/cpp/CppGenerator.java