}
Class baseType = Types.getCollectionBaseType(type, genericType);
entityStream.write('[');
try
{
JAXBContext ctx = finder.findCachedContext(baseType, mediaType, annotations);
Marshaller marshaller = ctx.createMarshaller();
marshaller = AbstractJAXBProvider.decorateMarshaller(baseType, annotations, mediaType, marshaller);
if (type.isArray())
{
Object[] array = (Object[]) entry;